TPDFlibPageTextCompare

Data types, document comparison

Description

Compares two loaded documents page by page on extracted text for ComparePageTextsWith.

TPDFlib declares the public methods and a protected dispatch method for the page by page text 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

TPDFlibPageTextCompare = Function(Other: TPDFlib;
  Out FirstDifferentPage, ThisPageCount, OtherPageCount: Integer): Integer Of Object;

Parameters

OtherSecond library instance whose document is compared with the selected one
FirstDifferentPageReceives the first page whose text differs, or 0 when all shared pages match
ThisPageCount, OtherPageCountReceive the page counts of both documents

Return values

N
0Either document is not loaded, or every shared page matches

See also

TPDFlibDocumentTextCompare, ComparePageTextsWith