Merge pull request #2059 from ONLYOFFICE/fix/print-preview
[DE] Send settings for first printing page
This commit is contained in:
commit
4c4da4113f
|
@ -491,10 +491,11 @@ define([
|
||||||
else if (this.printSettings.cmbRange.getValue()==='current')
|
else if (this.printSettings.cmbRange.getValue()==='current')
|
||||||
this._state.firstPrintPage = this._navigationPreview.currentPage;
|
this._state.firstPrintPage = this._navigationPreview.currentPage;
|
||||||
|
|
||||||
|
var size = this.api.asc_getPageSize(this._state.firstPrintPage);
|
||||||
this.adjPrintParams.asc_setNativeOptions({
|
this.adjPrintParams.asc_setNativeOptions({
|
||||||
pages: this.printSettings.cmbRange.getValue()===-1 ? this.printSettings.inputPages.getValue() : this.printSettings.cmbRange.getValue(),
|
pages: this.printSettings.cmbRange.getValue()===-1 ? this.printSettings.inputPages.getValue() : this.printSettings.cmbRange.getValue(),
|
||||||
paperSize: this._state.pgsize, //this.api.asc_getPageSize(this._state.firstPrintPage),
|
paperSize: size ? [size['W'], size['H']] : size,
|
||||||
paperOrientation: this._state.pgorient ? 'portrait' : 'landscape' // this.api.asc_getPageOrient(this._state.firstPrintPage) ? 'portrait' : 'landscape'
|
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
|
||||||
});
|
});
|
||||||
|
|
||||||
this._isPrint = print;
|
this._isPrint = print;
|
||||||
|
|
Loading…
Reference in a new issue