THotPDF.GetLoadedPageWidth Method

Returns the media box width (in PDF points) of the specified page in the loaded PDF document, used for layout calculation or coordinate mapping

Declaration

function GetLoadedPageWidth(PageIndex: Integer): Single;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page

Return value

Returns the width value of the page's MediaBox (unit: PDF points, 1 point = 1/72 inch); returns 0 if the index is invalid

Usage notes

Related APIs