On this page
$pageprop is a helper tool for setting the page layout of a DOCX file.
$pageprop.setLandscape()
Add a Section Break (Next Page) on the next page and set the layout orientation of the following pages to Landscape.
$pageprop.setLandscape(Double:top, Double:bottom, Double:left, Double:right)
Add a Section Break (Next Page) on the next page and set the layout orientation of the following pages to Landscape. Set the page margin with Double values.
| Name | Type | Description | |
|---|---|---|---|
| Parameter(s) | top | java.lang.Double | Top page margin | 
| bottom | java.lang.Double | Bottom page margin | |
| left | java.lang.Double | Left page margin | |
| right | java.lang.Double | Right page margin | |
| Return | - | void | - | 
$pageprop.setLandscape(String:top, String:bottom, String:left, String:right)
Add a Section Break (Next Page) on the next page and set the layout orientation of the following pages to Landscape. Set the page margin with String values.
| Name | Type | Description | |
|---|---|---|---|
| Parameter(s) | top | java.lang.String | Top page margin | 
| bottom | java.lang.String | Bottom page margin | |
| left | java.lang.String | Left page margin | |
| right | java.lang.String | Right page margin | |
| Return | - | void | - | 
$pageprop.setPortrait()
Add a Section Break (Next Page) on the next page and set the layout orientation of the following pages to Portrait.
$pageprop.setPortrait(Double:top, Double:bottom, Double:left, Double:right)
Add a Section Break (Next Page) on the next page and set the layout orientation of the following pages to Portrait. Set the page margin with Double values.
| Name | Type | Description | |
|---|---|---|---|
| Parameter(s) | top | java.lang.Double | Top page margin | 
| bottom | java.lang.Double | Bottom page margin | |
| left | java.lang.Double | Left page margin | |
| right | java.lang.Double | Right page margin | |
| Return | - | void | - | 
$pageprop.setPortrait(String:top, String:bottom, String:left, String:right)
Add a Section Break (Next Page) on the next page and set the layout orientation of the following pages to Portrait. Set the page margin with String values.
| Name | Type | Description | |
|---|---|---|---|
| Parameter(s) | top | java.lang.String | Top page margin | 
| bottom | java.lang.String | Bottom page margin | |
| left | java.lang.String | Left page margin | |
| right | java.lang.String | Right page margin | |
| Return | - | void | - |