[SSE] Set pdf options
This commit is contained in:
parent
a43e7a0c85
commit
cb552da277
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue