pageformat
.pageformat size:{PageSizeFormat? = null}
orientation:{PageOrientation = context.documentInfo.type.preferredOrientation}
width:{Size? = null}
height:{Size? = null}
margin:{Sizes? = null}
bordertop:{Size? = null}
borderright:{Size? = null}
borderbottom:{Size? = null}
borderleft:{Size? = null}
bordercolor:{Color? = null}
columns:{Int? = null}
alignment:{Container.TextAlignment? = null}
-> Void
Sets the page layout format of the document. If a value is unset, the default value supplied by the underlying renderer is used.
In case of
paged
documents, this function defines the properties of each page.In case of
slides
documents, this function defines the properties of each slide.In case of
plain
documents, this function defines some properties of the whole document, seeing it as just one page. Not all effects of this function are supported in plain documents.
If both size and width or height are set, the latter overrides the former. If both size and width or height are unset, the default value is used.
If any of bordertop, borderright, borderbottom, borderleft or bordercolor is set, the border will be applied around the content area of each page. If only bordercolor is set, the border will be applied with a default width to each side. Border is not supported in plain documents.
Parameters
- Optional
- Likely named
width of each page
- Optional
- Likely named
height of each page
- Optional
- Likely named
blank space around the content of each page. Not supported in slides documents
- Optional
- Likely named
border width of the top content area of each page
- Optional
- Likely named
border width of the right content area of each page
- Optional
- Likely named
border width of the bottom content area of each page
- Optional
- Likely named
border width of the left content area of each page
- Optional
- Likely named
color of the border around the content area of each page
- Optional
- Likely named
positive number of columns on each page. If set and greater than 1, the layout becomes multi-column. If < 1, the value is discarded