THotPDF.GetLoadedMaxObjectNumber Method
Returns the maximum object number recorded in the cross-reference table of the loaded PDF document
Declaration
function GetLoadedMaxObjectNumber: Integer;
Unit
HPDFDoc
Return value
Returns the maximum object number recorded in the XRef table or XRef stream; returns 0 if no document is loaded
Usage notes
- 最大对象编号通常等于 Trailer 中 Size 键的值减一,可用于估算文档的对象数量规模
- This value includes the number of free objects; the actual number of usable objects may be less than this value
- When used in conjunction with GetLoadedObjectByIndex, the index range should be between 0 and the return value of this method