THPDFContentOperatorVisitOptions
Defines bounded traversal and transformation limits
声明
THPDFContentOperatorVisitOptions = record
MaxSourceBytes: Int64;
MaxOperators: Integer;
MaxLexemes: Integer;
MaxDepth: Integer;
MaxReplacementBytes: Int64;
ValidateOutput: boolean;
class function Default: THPDFContentOperatorVisitOptions; static;
end;
参数
除消费它的遍历函数的参数外,此记录没有方法参数
返回值
Default 返回的限制为:256 MiB 源、1,000,000 个操作符、4,194,304 个词法单元(lexeme)、256 层深度和 64 MiB 替换内容,并启用输出校验
使用说明
- 对不受信任或对延迟敏感的工作负载,请使用更严格的取值
- Non-positive structural limits fail before parsing
- 当变换后的字节将被保存或渲染时,请保持
ValidateOutput=True