THotPDF.CompareObjectID Method
Compares the Object Number and Generation Number of two PDF objects.
Declaration
function CompareObjectID(IDL, IDR: THPDFObjectNumber): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
IDL | Object number on the left-hand side to compare |
IDR | Object number on the right-hand side to compare |
Return values
Returns the difference of generation numbers if object numbers are identical; otherwise returns the difference of object numbers (0 means identical, non-zero means different).
Usage
- Call: THotPDF.CompareObjectID
- Called when needing to sort, find, or compare PDF objects.
See also
- THotPDF
- Directory
- Contents