THotPDF.RepairDiagnosticDocument Method

在不重新序列化对象体的前提下,修复已编辑诊断文档中的流长度和文件结构偏移

声明

class function RepairDiagnosticDocument(
  const SourceFile, TargetFile: TFileName;
  const Options: THPDFDiagnosticRepairOptions;
  out Report: THPDFDiagnosticRepairReport
): Boolean; static;

参数

名称含义
SourceFile带 %QDF-1.0 标记的现有诊断 PDF
TargetFile校验成功后被原子替换的目标文件
Options输入、对象、校验与密码策略
Report结构化的状态、计数、字节总计、偏移与诊断文本

返回值

仅在修复成功且可选的严格重载校验通过后返回 True

Related API