THPDFDiagnosticRepairOptions Record
控制 RepairDiagnosticDocument 的资源上限和输出验证
声明
THPDFDiagnosticRepairOptions = record
MaxInputBytes: Int64;
MaxObjectCount: Integer;
MaxObjectNumber: Integer;
VerifyOutput: Boolean;
Password: AnsiString;
class function Default: THPDFDiagnosticRepairOptions; static;
end;
默认值
| 字段 | 默认 | 作用 |
|---|---|---|
MaxInputBytes | 8 GiB | 扫描之前拒绝更大的源文件 |
MaxObjectCount | 2,000,000 | 限制已校验的间接对象元数据数量 |
MaxObjectNumber | 2,000,000 | 限制 xref 行生成,防止稀疏对象编号被滥用 |
VerifyOutput | True | 在发布之前禁用 xref 恢复,重新加载临时结果 |
Password | 空 | 提供严格重载验证在处理加密诊断文档时使用的密码 |