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

FileBytesComplete PDF bytes of the converted document
TargetModePDF/UA or WTPDF target the conversion aimed at, using the numbering of ConvertToPDFUAEx
ComplianceIssuesReceives the issues that made the result False, or an empty string

Return values

TrueThe converted document satisfies the implemented checks
FalseThe conversion is rejected and the original document stays selected

See also

ConvertToPDFUAEx, ConvertToPDFUA