TPDFlibConvertedPDFUAVerification
Data types, compliance
Description
Checks the bytes that a PDF/UA conversion produced before the converted document replaces the selected one. The callback is optional: without it, TPDFlib accepts every non-empty output.
TPDFlib declares the public methods and a protected dispatch method for the compliance check that follows a PDF/UA conversion. 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
TPDFlibConvertedPDFUAVerification = Function(Const FileBytes: AnsiString;
TargetMode: Integer; Out ComplianceIssues: WideString): Boolean Of Object;Parameters
| FileBytes | Complete PDF bytes of the converted document |
|---|---|
| TargetMode | PDF/UA or WTPDF target the conversion aimed at, using the numbering of ConvertToPDFUAEx |
| ComplianceIssues | Receives the issues that made the result False, or an empty string |
Return values
| True | The converted document satisfies the implemented checks |
|---|---|
| False | The conversion is rejected and the original document stays selected |