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
| Other | The second document, loaded in its own TPDFlib instance |
|---|---|
| FirstDifferentPage | First page whose text differs, or 0 when all shared pages match |
| ThisPageCount, OtherPageCount | The 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