TPDFlibDocumentCompare

Data types, document comparison

Description

Compares the selected document with a saved revision for the comparison methods.

TPDFlib declares the public methods and a protected dispatch method for the comparison of the selected document with a saved revision. 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

TPDFlibDocumentCompare = Function(Comparison: TPDFlibDocumentComparison;
  Const OldFileName, OldPassword: WideString): Integer Of Object;

Parameters

ComparisonComparison to run: dcObjects or dcModifications
OldFileNamePath of the saved revision loaded as the old side of the comparison
OldPasswordPassword for OldFileName, or an empty string when the file is not encrypted

Return values

N
0No document is selected, or the file does not exist or could not be loaded

See also

TPDFlibDocumentComparison, TPDFlibFindingRead, CompareWith, AnalyzeModifications