TPDFlibPreflightCompare
Data types, compliance
Description
The reports are passed as Delphi String values. Free Pascal builds the library with 8-bit strings, so the library converts the UTF-16 text to UTF-8 bytes before the callback runs; Delphi receives the text unchanged.
TPDFlib declares the public methods and a protected dispatch method for the comparison of two plain-text preflight reports. 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
TPDFlibPreflightCompare = Function(Const ReportA, ReportB: String): WideString Of Object;Parameters
| ReportA | Baseline plain-text report, usually produced by CreatePreflightReport or read back from a file written by SavePreflightReport |
|---|---|
| ReportB | Current plain-text report to compare with the baseline |
Return values
| C |