TPDFlibDocumentTextCompare
Data types, document comparison
Description
Compares the extracted text of two loaded documents for CompareDocumentTextsWith.
TPDFlib declares the public methods and a protected dispatch method for the word or line level 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
TPDFlibDocumentTextCompare = Function(Other: TPDFlib; Granularity: Integer): WideString Of Object;Parameters
| Other | Second library instance whose document is compared with the selected one |
|---|---|
| Granularity | 0 compares words, 1 compares lines |
Return values
| J |