THPDFPageOrientation Type
Selects whether a page stays in portrait or landscape orientation and swaps its width and height when needed
Declaration
THPDFPageOrientation= (vpoPortrait, vpoLandscape);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
vpoPortrait |
Portrait: the page is kept taller than wide; the page dimensions are swapped when the current size is landscape |
vpoLandscape |
Landscape: the page is kept wider than 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 disagrees with the requested orientation - C++Builder builds declare the
vpo-prefixed identifiers shown above; Delphi and Free Pascal builds declarepoPortraitandpoLandscapefor the same type - Page dimensions are width x height before the orientation is applied