THPDFDiagnosticRepairOptions Record

控制 RepairDiagnosticDocument 的资源上限和输出验证

声明

THPDFDiagnosticRepairOptions = record
  MaxInputBytes: Int64;
  MaxObjectCount: Integer;
  MaxObjectNumber: Integer;
  VerifyOutput: Boolean;
  Password: AnsiString;
  class function Default: THPDFDiagnosticRepairOptions; static;
end;

默认值

字段默认作用
MaxInputBytes8 GiB扫描之前拒绝更大的源文件
MaxObjectCount2,000,000限制已校验的间接对象元数据数量
MaxObjectNumber2,000,000限制 xref 行生成,防止稀疏对象编号被滥用
VerifyOutputTrue在发布之前禁用 xref 恢复,重新加载临时结果
Password空提供严格重载验证在处理加密诊断文档时使用的密码

另请参阅: 可编辑诊断文档与修复, THPDFDiagnosticRepairReport