THotPDF.RepairPDFFromPreflightReport Method
Provides repair pdf from preflight report behavior for the preflight validation workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function RepairPDFFromPreflightReport(const SourceFile: TFileName; const TargetFile: TFileName; out RepairsApplied: AnsiString): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
SourceFile | File path used as the source or destination for this operation |
TargetFile | File path used as the source or destination for this operation |
RepairsApplied | Input used by RepairPDFFromPreflightReport |
Return value
Returns a boolean value
Usage notes
- Use this API in the preflight validation workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Use profile helpers when report output must be repeatable across batch validation runs