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

PropertyDescription
orientation_listAvailable orientation values
size_listAvailable page size values
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

MethodDescription
get_sizeCalculates page size in “Portrait” page orientation
predefined page sizeCalculated page size
get_sizeCalculates page size in given page orientation
predefined page sizeorientation of the pageCalculated page size
get_sizeCalculates page size in given page orientation
Original page sizeOrientation of the pageCalculated page size
get_marginsGets page margins values
Predefined page margins namePredefined page margins values
get_marginsCalculate page margins мфдгуы in specified orientation
Original marginsOrientation of the pageЗredefined page margins for given orientation

See Also