PageInfo class

PageInfo class

Represents information about a particular document page. To learn more, visit the Rendering documentation article.

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.
height_in_pointsGets the height of the page in points.
landscapeReturns True if the page orientation specified in the document for this page is landscape.
paper_sizeGets the paper size as enumeration.
paper_trayGets the paper tray (bin) for this page as specified in the document. The value is implementation (printer) specific.
size_in_pointsGets the page size in points.
width_in_pointsGets the width of the page in points.

Methods

NameDescription
get_size_in_pixels(scale, dpi)Calculates the page size in pixels for a specified zoom factor and resolution.
get_size_in_pixels(scale, horizontal_dpi, vertical_dpi)Calculates the page size in pixels for a specified zoom factor and resolution.

See Also