THotPDF.GetLoadedPageVisibleBox Method
Returns the region of a loaded page that is displayed and printed: its /CropBox clipped to its /MediaBox
Declaration
function GetLoadedPageVisibleBox(
PageIndex: Integer;
out Left, Bottom, Right, Top: Single): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the loaded page |
Left, Bottom, Right, Top | Receive the box in default user space units, with Left < Right and Bottom < Top |
Return value
True when the page exists and has a usable /MediaBox; on False the output values are left unchanged, so a default page size can be preset
Usage notes
- A page is shown and printed through its /CropBox, which defaults to the /MediaBox and is clipped to it (ISO 32000-1 14.11.2); a /CropBox that does not overlap the /MediaBox is ignored
RenderLoadedPageToBitmap, the tile, band and metafile renderers,BuildLoadedPageSVG, the viewer and printing all cover this box; its lower-left corner maps to the lower-left corner of the output before /Rotate is applied- Use
GetLoadedPageBoxto read a page box entry as it is stored