Next / Previous / Contents / Shipman's homepage

4.7. pageDimFactory(): Some pre-built PageDim instances

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


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.