From cb552da2777471b61d1ede0ae9dcd145fbb2b168 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 25 Jul 2019 13:17:33 +0300 Subject: [PATCH] [SSE] Set pdf options --- apps/spreadsheeteditor/main/app/controller/Main.js | 2 +- apps/spreadsheeteditor/main/app/controller/Print.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 7d96550c7..24bb00796 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -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); } }; diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index 4ffddea96..df38ffdea 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -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');