PageInfo
Overview
PageInfo is a class in Aspose.Pdf FOSS for Java.
Holds page layout information including dimensions and margins.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | double | Read | Returns the page width in points. |
height | double | Read | Returns the page height in points. |
pureHeight | double | Read | Returns the usable height (page height minus top and bottom margins). |
margin | MarginInfo | Read | Returns the margin information. |
landscape | boolean | Read | Returns whether this page is in landscape orientation. |
Methods
| Signature | Description |
|---|---|
PageInfo() | Creates a PageInfo with default A4 dimensions (595 x 842 points) and zero margins. |
PageInfo(width: double, height: double) | Creates a PageInfo with the specified dimensions and zero margins. |
getWidth() → double | Returns the page width in points. |
setWidth(width: double) | Sets the page width in points. |
getHeight() → double | Returns the page height in points. |
getPureHeight() → double | Returns the usable height (page height minus top and bottom margins). |
setHeight(height: double) | Sets the page height in points. |
getMargin() → MarginInfo | Returns the margin information. |
setMargin(margin: MarginInfo) | Sets the margin information. |
isLandscape() → boolean | Returns whether this page is in landscape orientation. |
setIsLandscape(landscape: boolean) | Sets whether this page should be in landscape orientation. |
deepClone() → PageInfo | Creates a deep copy of this PageInfo, including a copy of the margin. |
toString() → String |