THPDFHeadlessDocument.GetObjectAccess

function GetObjectAccess(MaxObjectCount: Integer = MaxInt;
  MaxIndexBytes: Int64 = High(Int64)): THPDFHeadlessObjectAccess;

Returns read-only borrowed graph access from a loaded document after checking extraction permission; object-count and index-byte limits are checked before allocating the object-number array

THPDFHeadlessObjectAccess

Declared in HPDFHeadlessRenderAccess; Reader contains existing bounded resolver and stream callbacks, Catalog and Information expose catalog and optional information objects, and EncryptionObjectNumber identifies the encryption dictionary

ObjectNumbers contains every nonzero in-use cross-reference entry; ReadObject(Reader.Context, ObjectNumber) lazily loads a referenced object through THPDFHeadlessObjectReader

Objects and callback contexts belong to the document; never modify or free borrowed objects, and stop using the record before the document is reloaded, closed, changed or destroyed

Enumeration and object loading honor the document cancellation token; the returned number array is caller-managed while its objects remain borrowed

Structural comparison · Document API