Constructor
new PrintLayoutOptions(pageHeightopt, pageWidthopt, pageMarginsopt, doubleSidedopt, colCountopt, gutterWidthopt, autoTextBoxopt, pageCountopt, pageDirectionopt)
Example
let myLayout = new app.PrintLayoutOptions('800', '800');
ES6 Spread operator:
let layoutOptions = ['800', '800', ['36', '36', '36', '36'], false];
let myLayout = new app.PrintLayoutOptions(...layoutOptions);
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
pageHeight |
string |
<optional> |
'1000'
|
value for page height. |
pageWidth |
string |
<optional> |
'1000'
|
value for page width. |
pageMargins |
Array.<string> |
<optional> |
['36', '36', '36', '36']
|
The Page Margins [top, left, bottom, right] e.g.:['10px', '20px', '30px', '10px']. |
doubleSided |
boolean |
<optional> |
false
|
TRUE for double-sided (i.e. facing pages) document else FALSE. |
colCount |
number |
<optional> |
1
|
Number of columns for master guides. |
gutterWidth |
string |
<optional> |
'786432'
|
value for gutter width. |
autoTextBox |
boolean |
<optional> |
false
|
TRUE for an automatic text box else FALSE. |
pageCount |
number |
<optional> |
1
|
Number of pages in the layout. |
pageDirection |
boolean |
<optional> |
false
|
Page direction. |