PageConstants class

PageConstants class

This class defines a set of constants which describe a page.
Convenience objects are provided for various margins, orientations,
rescaling, and standard page sizes.

The PageConstants type exposes the following members:

Properties

NameDescription
orientation_list
size_list
ORIENTATIONOrientation key, for the named orienation of page, Portret or Landscape.
VIEWING_ORIENTATIONViewing orientation key, for rotation matrix distinguishing orientation of content on the page. The default viewing orientation matrix is identity.
ORIENTATION_PORTRAIT“Portrait” orientation value
ORIENTATION_LANDSCAPE“Landscape” orientation value
ORIENTATION_BEST_FIT“Best fit” orientation value
PAGE_SIZEPage size key
SIZE_INTERNATIONAL“International” page size value
SIZE_A3“A3” page size value
SIZE_A4“A4” page size value
SIZE_A5“A5” page size value
SIZE_A6“A6” page size value
SIZE_LETTER“Letter” page size value
SIZE_LEGAL“Legal” page size value
SIZE_EXECUTIVE“Executive” page size value
SIZE_LEDGER“Ledger” page size value
PAGE_MARGINSPage margins key
MARGINS_ZERO“Zero” page margins value
MARGINS_SMALL“Small” page margins value
MARGINS_MEDIUM“Medium” page margins value
MARGINS_LARGE“Large” page margins value
FIT_TO_PAGEFit content to page key
TRANSPARENTTransparent background key
BACKGROUNDBackground key
BACKGROUND_COLORBackground color key

Methods

NameDescription
get_size(size)Calculates page size in “Portrait” page orientation
get_size(size, orientation)Calculates page size in “Portrait” page orientation
get_size(size, orientation)Calculates page size in given page orientation
get_margins(margins_size)Gets page margins values
get_margins(margins, orientation)Gets page margins values

See Also