THotPDF.RepairDiagnosticDocument Method
Repairs stream lengths and file-structure offsets in an edited diagnostic document without reserializing its object bodies
Declaration
class function RepairDiagnosticDocument(
const SourceFile, TargetFile: TFileName;
const Options: THPDFDiagnosticRepairOptions;
out Report: THPDFDiagnosticRepairReport
): Boolean; static;
Parameters
| Name | 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 |
Return value
Returns True only after repair succeeds and optional strict reload validation passes