THPDFPageOrientation Type
Selects whether a page stays portrait or turns landscape, swapping its width and height when needed
Declaration
THPDFPageOrientation= (vpoPortrait, vpoLandscape);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
vpoPortrait |
Portrait: the page is kept taller than it is wide; the page dimensions are swapped when the current size is landscape |
vpoLandscape |
Landscape: the page is kept wider than it is tall; the page dimensions are swapped when the current size is portrait |
Usage notes
- Assign through the
Orientationproperty ofTHPDFPage; the setter turns the page only when the current width/height relation contradicts the requested orientation - C++Builder builds declare the
vpo-prefixed identifiers shown above; Delphi and Free Pascal builds declarepoPortraitandpoLandscapeas the equivalent type - Page dimensions are width x height before the orientation has been applied