CompareDocuments Method of the Comparator Object

This method compares the original document with its copy. Both documents should have already been recognized using, for example, the Process method of the FRDocument object (or another method that performs document synthesis).

This method returns the ComparisonResult object that contains all the changes made to the document.

Syntax

HRESULT CompareDocuments(
  IFRDocument*         RefDocument,
  IFRDocument*         UserDocument,
  IIntsCollection*     RefPageIndices,
  IIntsCollection*     UserPageIndices,
  IComparisonResult**  Result
);
    

Parameters

RefDocument
[in] Refers to the FRDocument object that contains the original document to compare. This parameter must not be NULL.
UserDocument
[in] Refers to the FRDocument object that contains the document copy to compare. This parameter must not be NULL.
RefPageIndices
[in] This parameter refers to the IntsCollection object which specifies the indices of the pages to be compared with the pages in the original document.
UserPageIndices
[in] This parameter refers to the IntsCollection object which specifies the indices of the pages to be compared with the pages in the document copy.
Result
[out, retval] A pointer to IComparisonResult* pointer variable that receives the interface pointer of the output ComparisonResult object.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

Comparator

03.07.2024 8:50:25

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.