THotPDF.GetPageArrIndexForObjectNumber Method
Returns the zero-based page index associated with a PDF object number
Declaration
function GetPageArrIndexForObjectNumber(ObjectNumber: Integer): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ObjectNumber | Indirect PDF object number of the page to locate |
Return value
Returns the zero-based page index, or -1 for zero, negative, unknown, or removed object numbers
Usage notes
- The first lookup after loading or page mutation lazily rebuilds the reverse index
- Malformed duplicate identities resolve to the first page in document order
- Loaded-document mutation must not run concurrently with lookup on the same instance