TPDFlibVisualDocumentCompare

Data types, document comparison

Description

Aligns and compares the pages of two loaded documents for the document visual comparison.

TPDFlib declares the public methods and a protected dispatch method for the document-wide visual comparison of two loaded documents. 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

TPDFlibVisualDocumentCompare = Function(Other: TPDFlib; DPI: Double;
  Const Options: TPDFVisualCompareOptions; Similar: Boolean;
  Const Anchors: TPDFVisualAnchors): WideString Of Object;

Parameters

OtherSecond library instance whose document is compared with the selected one
DPIResolution in dots per inch used to render and fingerprint every page of both documents
OptionsTPDFVisualCompareOptions; ColorTolerance and IgnoreRects affect the paired comparisons, mask and overlay requests are ignored
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

TPDFlibVisualFileCompare, TPDFlibVisualOptionsRun, CompareDocumentVisualsWith