TPDFlibVisualFileCompare
Data types, document comparison
Description
Compares the selected document with a PDF file for the file-based visual comparisons.
TPDFlib declares the public methods and a protected dispatch method for the visual comparison of the selected document with a PDF file. 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_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibVisualFileCompare = Function(Const OtherFileName, Password: WideString;
DPI: Double; ThisPage, OtherPage: Integer; Const Options: TPDFVisualCompareOptions;
Similar: Boolean; Const Anchors: TPDFVisualAnchors): WideString Of Object;Parameters
| OtherFileName | Path of the comparison PDF, loaded into a temporary instance that inherits the settings of this instance |
|---|---|
| Password | Password for the comparison file, or an empty string for an unencrypted document |
| DPI | Resolution in dots per inch used to render and fingerprint the pages |
| ThisPage, OtherPage | One-based page pair to compare; 0 and 0 compare whole documents |
| Options | TPDFVisualCompareOptions with ColorTolerance, TileSize, IgnoreRects and the mask and overlay requests |
| Similar | True pairs pages by rendered appearance instead of by position |
| Anchors | TPDFVisualAnchors naming page pairs that stay fixed during the alignment |
Return values
| J |
See also
TPDFlibVisualDocumentCompare, TPDFlibVisualOptionsRun, CompareFileVisuals, CompareFileVisualsEx