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

NamePurpose
PageIndexZero-based index of the loaded page
Left, Bottom, Right, TopReceive 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

Related APIs