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

PDFLibrary instance that holds the current document
BaselineLibrary instance loaded with the baseline file
Granularity0 compares words, 1 compares lines
OutputFileNamePath of the paginated A4 review PDF to write

Return values

1The review PDF was written
0Nothing was written; the reason is reported through the public method

See also

TPDFlibTextComparisonRender, TPDFlibTextComparisonResult, SaveTextComparisonPDF