ComparePageTextsWith

Page manipulation

Description

Compares two documents page by page on extracted text

Syntax

Delphi

Function ComparePageTextsWith(Other: TPDFlib; Out FirstDifferentPage, ThisPageCount, OtherPageCount: Integer): Integer;

Parameters

OtherThe second document, loaded in its own TPDFlib instance
FirstDifferentPageFirst page whose text differs, or 0 when all shared pages match
ThisPageCount, OtherPageCountThe page counts of both documents

Return value

The number of pages whose extracted text differs; differing page counts surface through the count parameters

Remarks

Comparison uses raw extraction (option 8) so whitespace layout influences the result

See also

GetPageText, ComparePreflightReports