TPDFlibTextComparisonSave
Data types, document comparison
Description
Writes the text comparison review PDF for SaveTextComparisonPDF.
TPDFlib declares the public methods and a protected dispatch method for the text comparison of the selected document with a separately loaded baseline file. 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
TPDFlibTextComparisonSave = Function(PDF, Baseline: TPDFlib;
Granularity: Integer; Const OutputFileName: WideString): Integer;Parameters
| Library instance that holds the current document | |
| Baseline | Library instance loaded with the baseline file |
| Granularity | 0 compares words, 1 compares lines |
| OutputFileName | Path of the paginated A4 review PDF to write |
Return values
| 1 | The review PDF was written |
|---|---|
| 0 | Nothing was written; the reason is reported through the public method |
See also
TPDFlibTextComparisonRender, TPDFlibTextComparisonResult, SaveTextComparisonPDF