THotPDF.CreatePreflightReport Method
Provides create preflight report behaviour 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 CreatePreflightReport(const SourceFile: TFileName; const Password: AnsiString= ''): AnsiString;
function CreatePreflightReport(const SourceFile: TFileName; const Password: AnsiString; const Format: THPDFPreflightFormat): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
SourceFile | File path used as the source or destination for this operation |
Password | Password used for encrypted input or encrypted output workflows |
Return value
Returns an AnsiString value
Usage notes
- Use this API in the preflight validation workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised
- Use profile helpers when report output must be repeatable across batch validation runs
pfJSONfindings expose stable namespacedruleIdvalues and structuredlocationobjects for policy engines and CI gates- Locations always provide logical scope and path, and include a PDF key, object number, zero-based page index, or byte offset when available
pfTextremains byte-compatible andpfCSVretains the stablecategory,name,status,value,speccolumns