TPDFlibDocumentComparison

Data types, document comparison

Description

Selects which comparison of the selected document against a saved revision a dispatched call stands for. The value travels with the Compare callback of TPDFlibDocumentCompare and with the Read callback of TPDFlibFindingRead; the public methods take no parameter of this type.

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, and this value tells the callback which public method is calling. 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 passes a value of this type.

Syntax

Delphi

type TPDFlibDocumentComparison = (dcObjects, dcModifications);

Values

dcObjectsStructural comparison of the objects of both documents; the operation behind CompareWith
dcModificationsClassification of every change against the modification whitelist used by signature validation; the operation behind AnalyzeModifications

See also

TPDFlibDocumentCompare, TPDFlibFindingRead, CompareWith, AnalyzeModifications