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.


NameTypeDescription
Parameter(s)topjava.lang.DoubleTop page margin

bottomjava.lang.DoubleBottom page margin

leftjava.lang.DoubleLeft page margin

rightjava.lang.DoubleRight 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.


NameTypeDescription
Parameter(s)topjava.lang.StringTop page margin

bottomjava.lang.StringBottom page margin

leftjava.lang.StringLeft page margin

rightjava.lang.StringRight 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.


NameTypeDescription
Parameter(s)topjava.lang.DoubleTop page margin

bottomjava.lang.DoubleBottom page margin

leftjava.lang.DoubleLeft page margin

rightjava.lang.DoubleRight 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.


NameTypeDescription
Parameter(s)topjava.lang.StringTop page margin

bottomjava.lang.StringBottom page margin

leftjava.lang.StringLeft page margin

rightjava.lang.StringRight page margin
Return-void-