THPDFHeadlessFormDataOptions
THPDFHeadlessFormDataOptions = record
MaxBytes, MaxFields, MaxObjects, MaxDepth, MaxValues: Integer;
MaxValueCodeUnits, MaxTotalCodeUnits: Integer;
CancellationToken: THPDFCancellationToken;
class function Default: THPDFHeadlessFormDataOptions; static;
end;
Use Default before changing individual limits; all limits must be positive and MaxDepth must not exceed 64
| Member | Default | Bound |
|---|---|---|
| MaxBytes | 16777216 | Complete encoded input and emitted output bytes |
| MaxFields | 65536 | Terminal Unicode field records |
| MaxObjects | 100000 | Parsed PDF objects, XML nodes and attributes, model entries and generated FDF hierarchy nodes |
| MaxDepth | 64 | Serialised syntax, nested fields and bounded indirect reference resolution |
| MaxValues | 65536 | Text values within one field |
| MaxValueCodeUnits | 1048576 | One Unicode string or FDF byte-name length |
| MaxTotalCodeUnits | 4194304 | Aggregate names, parsed text and field values |
| CancellationToken | nil | Cooperative parsing, emission and document-operation cancellation |
| RichTextDocumentURI | Empty | Base URI for caller-supplied rich-text CSS resources |
| RichTextStyleSheetTitle | Empty | Optional selected stylesheet set title |
| RichTextStyleSheets | Empty | At 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 the complete parsing work
FDF nesting includes dictionary and Kids-array levels around each qualified name component, so serialised 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