THPDFHeadlessDocumentOptions

This record in HPDFHeadlessDocument configures positive resource limits for THPDFHeadlessDocument

MemberDefaultMeaning
MaxFileBytes1 GiBMaximum source and published output size
MaxObjectBytes16 MiBMaximum raw indirect-object block and replacement object size
MaxDecodedBytes64 MiBMaximum decoded stream, combined page-content size, and total retained decoded object-stream bytes
MaxObjects1,000,000Maximum cross-reference object-number range
MaxPages100,000Maximum page-tree leaf count
MaxFields100,000Maximum terminal AcroForm field count
MaxDepth64Maximum xref history, reference, page, field, filter, and Form XObject depth
MaxGlyphs1,000,000Maximum page text operands and interpreted glyph count
CancellationTokennilOptional caller-owned THPDFCancellationToken

Default initializes every member; invalid nonpositive limits are rejected by the constructor, and cancellation raises EHPDFOperationCancelled

Limits apply to their individual operations and are not a total process-memory quota; loaded object dictionaries remain cached until Close