diff --git a/apps/documenteditor/main/app/controller/Print.js b/apps/documenteditor/main/app/controller/Print.js index a94c81490..2be799c0a 100644 --- a/apps/documenteditor/main/app/controller/Print.js +++ b/apps/documenteditor/main/app/controller/Print.js @@ -151,6 +151,25 @@ define([ return this; }, + findPagePreset: function(w, h) { + var width = (w size['W'] ? 'portrait' : 'landscape') : null }); diff --git a/apps/presentationeditor/main/app/controller/Print.js b/apps/presentationeditor/main/app/controller/Print.js index e84faf33a..657bb963d 100644 --- a/apps/presentationeditor/main/app/controller/Print.js +++ b/apps/presentationeditor/main/app/controller/Print.js @@ -296,7 +296,11 @@ define([ var rec = this.printSettings.cmbPaperSize.getSelectedRecord(); this.adjPrintParams.asc_setNativeOptions({ pages: this.printSettings.cmbRange.getValue()===-1 ? this.printSettings.inputPages.getValue() : this.printSettings.cmbRange.getValue(), - paperSize: rec ? rec.size : null + paperSize: { + w: rec ? rec.size[0] : undefined, + h: rec ? rec.size[1] : undefined, + preset: rec ? rec.caption : undefined + } }); this._isPrint = print;