|
THPDFPage.Height
|
Top Previous Next |
|
Specifies the vertical size of the page.
Delphi syntax: property Height: Single;
C++ syntax: __property float Height;
Description Use the Height property to read or change the height of the page. Height is in points and a new value is taken in points. Drawing coordinates are in 1/THotPDF.Resolution inch, so with a Resolution other than 72 read UserHeight to get the page height in the units you draw with. Setting Height makes the page UserDefined, and a UserDefined page draws in points.
When the page was loaded from a file, setting Height writes the page's own MediaBox: a MediaBox shared with other pages, or one whose numbers are separate objects, is first replaced by a copy for this page, so other pages and objects keep their values. Setting Height on a page whose canvas has been closed raises EHPDFPageClosedError. Code Example
See also: UserHeight, Width, Size |