THotPDF.RepairDiagnosticDocument Method
在不重新序列化对象体的前提下,修复已编辑诊断文档中的流长度和文件结构偏移
声明
class function RepairDiagnosticDocument(
const SourceFile, TargetFile: TFileName;
const Options: THPDFDiagnosticRepairOptions;
out Report: THPDFDiagnosticRepairReport
): Boolean; static;
参数
| 名称 | Meaning |
|---|---|
SourceFile | Existing diagnostic PDF carrying the %QDF-1.0 marker |
TargetFile | Destination replaced atomically after successful validation |
Options | Input, object, verification, and password policy |
Report | Structured status, counts, byte totals, offsets, and diagnostic text |
返回值
返回 True only after repair succeeds and optional strict reload validation passes