THotPDF.GetLoadedPageObjectNumber Method

Returns the PDF indirect object number corresponding to the specified page in the loaded PDF document

Declaration

function GetLoadedPageObjectNumber(PageIndex: Integer): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page

Return value

Returns the indirect object number (positive integer) of the page in the XRef; returns 0 if the index is out of bounds

Usage notes

Related APIs