THPDFContentOperatorVisitOptions
Defines bounded traversal and transformation limits
Declaration
THPDFContentOperatorVisitOptions = record
MaxSourceBytes: Int64;
MaxOperators: Integer;
MaxLexemes: Integer;
MaxDepth: Integer;
MaxReplacementBytes: Int64;
ValidateOutput: boolean;
class function Default: THPDFContentOperatorVisitOptions; static;
end;
Parameters
This record has no method parameters except those of the consuming traversal function
Return value
Default returns 256 MiB source, 1,000,000 operator, 4,194,304 lexeme, 256 depth, and 64 MiB replacement limits with output validation enabled
Usage notes
- Use stricter values for untrusted or latency-sensitive workloads
- Non-positive structural limits fail before parsing
- Keep
ValidateOutput=Truewhen transformed bytes will be saved or rendered