PageInfo

Overview

PageInfo is a class in Aspose.Pdf FOSS for Java.

Holds page layout information including dimensions and margins.

Properties

NameTypeAccessDescription
widthdoubleReadReturns the page width in points.
heightdoubleReadReturns the page height in points.
pureHeightdoubleReadReturns the usable height (page height minus top and bottom margins).
marginMarginInfoReadReturns the margin information.
landscapebooleanReadReturns whether this page is in landscape orientation.

Methods

SignatureDescription
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()doubleReturns the page width in points.
setWidth(width: double)Sets the page width in points.
getHeight()doubleReturns the page height in points.
getPureHeight()doubleReturns the usable height (page height minus top and bottom margins).
setHeight(height: double)Sets the page height in points.
getMargin()MarginInfoReturns the margin information.
setMargin(margin: MarginInfo)Sets the margin information.
isLandscape()booleanReturns whether this page is in landscape orientation.
setIsLandscape(landscape: boolean)Sets whether this page should be in landscape orientation.
deepClone()PageInfoCreates a deep copy of this PageInfo, including a copy of the margin.
toString()String

See Also