跳转到主要内容
此方法用于比较原始文档及其副本。这两个文档应已通过 FRDocument 对象的 Process 方法 (或其他执行文档合成的方法) 完成识别。 此方法返回 ComparisonResult 对象,其中包含对文档所做的所有更改。

语法

C++

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

C#

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

Visual Basic .NET

Function CompareDocuments( _
  RefDocument As IFRDocument, _
  UserDocument As IFRDocument, _
  RefPageIndices As IIntsCollection, _
  UserPageIndices As IIntsCollection _
) As IComparisonResult

参数

RefDocument [in] 指向包含要比较的原始文档的 FRDocument 对象。此参数不得为 NULL。 UserDocument [in] 指向包含要比较的文档副本的 FRDocument 对象。此参数不得为 NULL。 RefPageIndices [in] 此参数指向 IntsCollection 对象,该对象指定要与原始文档中的页面进行比较的页面索引。 UserPageIndices [in] 此参数指向 IntsCollection 对象,该对象指定要与文档副本中的页面进行比较的页面索引。 Result [out, retval] 指向 IComparisonResult* 指针变量的指针,该变量接收输出 ComparisonResult 对象的接口指针。

返回值

此方法没有特定返回值。它返回 ABBYY FineReader Engine 函数的标准返回值

另请参阅

Comparator