TPDFlibPDFAConversionRun
Data types, compliance
Description
Converts the selected document to PDF/A on a private snapshot and replaces the document only when the result passes the implemented checks. ConvertToPDFA runs the callback with the default fidelity policy and resolution, ConvertToPDFAEx with the values the caller supplied.
TPDFlib declares the public methods and a protected dispatch method for converting the selected document to PDF/A. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_ENTERPRISE_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibPDFAConversionRun = Function(TargetMode, FidelityPolicy, DPI: Integer;
UseDefaults: Boolean): Integer Of Object;Parameters
| TargetMode | Part and level to convert to, from 1 through 11, using the numbering of SetPDFAMode |
|---|---|
| FidelityPolicy | Transparency fidelity policy: 0 whole-page compositing, 1 prefer local regions, 2 regions only |
| DPI | Resolution used for any required region or whole-page composition |
| UseDefaults | True when ConvertToPDFA selected the default policy and resolution, False when ConvertToPDFAEx passed them |
Return values
| 1 | The converted document passed the implemented checks and replaced the selected document |
|---|---|
| 0 | The conversion failed or the result did not pass; the original document stays selected |