TPDFlibTextComparisonRender

Data types, document comparison

Description

Builds the text comparison report for CreateTextComparisonReport.

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

TPDFlibTextComparisonRender = Function(PDF, Baseline: TPDFlib;
  Granularity, ReportFormat: Integer): WideString;

Parameters

PDFLibrary instance that holds the current document
BaselineLibrary instance loaded with the baseline file
Granularity0 compares words, 1 compares lines
ReportFormat0 produces an HTML report, 1 a JSON envelope

Return values

T

See also

TPDFlibTextComparisonSave, TPDFlibTextComparisonResult, CreateTextComparisonReport