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

OtherFileNamePath of the comparison PDF, loaded into a temporary instance that inherits the settings of this instance
PasswordPassword for the comparison file, or an empty string for an unencrypted document
DPIResolution in dots per inch used to render and fingerprint the pages
ThisPage, OtherPageOne-based page pair to compare; 0 and 0 compare whole documents
OptionsTPDFVisualCompareOptions with ColorTolerance, TileSize, IgnoreRects and the mask and overlay requests
SimilarTrue pairs pages by rendered appearance instead of by position
AnchorsTPDFVisualAnchors naming page pairs that stay fixed during the alignment

Return values

J

See also

TPDFlibVisualDocumentCompare, TPDFlibVisualOptionsRun, CompareFileVisuals, CompareFileVisualsEx