PageInfo class

PageInfo class

Wraps Size for public API Node.js porting.

Remarks

The page width and height returned by this object represent the “final” size of the page e.g. they are already rotated to the correct orientation.

Properties

NameDescription
coloredReturns true if the page contains colored content.
heightInPointsGets the height of the page in points.
landscapeReturns true if the page orientation specified in the document for this page is landscape.
paperSizeGets the paper size as enumeration.
paperTrayGets the paper tray (bin) for this page as specified in the document. The value is implementation (printer) specific.
sizeInPoints2Gets the page size in points.
widthInPointsGets the width of the page in points.

Methods

NameDescription
getSizeInPixels2(scale, dpi)Calculates the page size in pixels for a specified zoom factor and resolution.
getSizeInPixels2(scale, horizontalDpi, verticalDpi)Calculates the page size in pixels for a specified zoom factor and resolution.

See Also