THotPDF.GetLoadedPageVisibleBox Method

Gives back the area of a loaded page that is displayed and printed: the /CropBox clipped against the /MediaBox

Declaration

function GetLoadedPageVisibleBox(
  PageIndex: Integer;
  out Left, Bottom, Right, Top: Single): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexIndex of the loaded page, counting from zero
Left, Bottom, Right, TopReceive the box in default user space units, such that Left < Right and Bottom < Top

Return value

True whenever the page exists and carries a usable /MediaBox; a False result leaves the output values untouched, so a default page size may be preset in advance

Usage notes

Related APIs