THPDFHeadlessFormDataOptions

THPDFHeadlessFormDataOptions = record
  MaxBytes, MaxFields, MaxObjects, MaxDepth, MaxValues: Integer;
  MaxValueCodeUnits, MaxTotalCodeUnits: Integer;
  CancellationToken: THPDFCancellationToken;
  RichTextDocumentURI, RichTextStyleSheetTitle: UnicodeString;
  RichTextStyleSheets: THPDFHeadlessRichTextStyleSheets;
  class function Default: THPDFHeadlessFormDataOptions; static;
end;

Use Default before changing individual limits; all limits must be positive and MaxDepth must not exceed 64

MemberDefaultBound
MaxBytes16777216Complete encoded input and emitted output bytes
MaxFields65536Terminal Unicode field records
MaxObjects100000Parsed PDF objects, XML nodes and attributes, model entries and generated FDF hierarchy nodes
MaxDepth64Serialized syntax, nested fields and bounded indirect reference resolution
MaxValues65536Text values within one field
MaxValueCodeUnits1048576One Unicode string or FDF byte-name length
MaxTotalCodeUnits4194304Aggregate names, parsed text and field values
CancellationTokennilCooperative parsing, emission and document-operation cancellation
RichTextDocumentURIEmptyBase URI for caller-supplied rich-text CSS resources
RichTextStyleSheetTitleEmptyOptional selected stylesheet set title
RichTextStyleSheetsEmptyAt most 256 preloaded external CSS resources

XML parsing counts textual attributes and resolved qualified names as processing occurs, so aggregate usage can exceed only the terminal field payload; the limit bounds complete parsing work

FDF nesting includes dictionary and Kids-array levels around each qualified name component, so serialized depth can exceed the number of field-name components

Document methods cap byte, field and depth limits with the loaded document options and require a shared cancellation token

External stylesheet options apply to rich FDF/XFDF decoding and document imports, with the same operation limits and cancellation token