Next / Previous / Contents / Shipman's homepage

6.5. pageDimsFactory(): Some pre-built PageDims instances

Use the pageDimsFactory() function to build a new instance of class PageDims in one of a few standard sizes. Here is the calling sequence:

pageDimsFactory(paperType)

The paperType argument may be any of these values:

PAPER_LETTER Letter paper in portrait orientation, 8.5″×11″.
PAPER_LETTER_LAND Letter paper in landscape orientation, 11″×8.5″.
PAPER_LEGAL Letter paper, 8.5″×14″.
PAPER_3X5 A standard file card 3″×5″ in portrait orientation.