[SSE] Set pdf options

This commit is contained in:
Julia Radzhabova 2019-07-25 13:17:33 +03:00
parent a43e7a0c85
commit cb552da277
2 changed files with 3 additions and 3 deletions

View file

@ -2026,7 +2026,7 @@ define([
window.focus();
} catch (e) {
var opts = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF);
opts.asc_setAdjustPrint(me.getApplication().getController('Print').getPrintParams());
opts.asc_setAdvancedOptions(me.getApplication().getController('Print').getPrintParams());
me.api.asc_DownloadAs(opts);
}
};

View file

@ -268,11 +268,11 @@ define([
if ( this.printSettingsDlg.type=='print' ) {
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isSafari || Common.Utils.isOpera);
opts.asc_setAdjustPrint(this.adjPrintParams);
opts.asc_setAdvancedOptions(this.adjPrintParams);
this.api.asc_Print(opts);
} else {
var opts = new Asc.asc_CDownloadOptions(this.downloadFormat, this.asUrl);
opts.asc_setAdjustPrint(this.adjPrintParams);
opts.asc_setAdvancedOptions(this.adjPrintParams);
this.api.asc_DownloadAs(opts);
}
Common.component.Analytics.trackEvent((this.printSettingsDlg.type=='print') ? 'Print' : 'DownloadAs');