メインコンテンツへスキップ
このメソッドは、元のDocumentとそのコピーを比較します。両方のDocumentは、あらかじめ FRDocument オブジェクトの Process メソッド (または文書合成を実行する別のメソッド) などで認識されている必要があります。 このメソッドは、Documentに加えられたすべての変更内容を含む 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] 比較対象の元のDocumentを含む FRDocument オブジェクトを参照します。このパラメーターは NULL であってはなりません。 UserDocument [in] 比較対象のDocumentのコピーを含む FRDocument オブジェクトを参照します。このパラメーターは NULL であってはなりません。 RefPageIndices [in] このパラメーターは、元のDocument内のページと比較するページのインデックスを指定する IntsCollection オブジェクトを参照します。 UserPageIndices [in] このパラメーターは、Documentのコピー内のページと比較するページのインデックスを指定する IntsCollection オブジェクトを参照します。 Result [out, retval] 出力 ComparisonResult オブジェクトのインターフェース ポインターを受け取る IComparisonResult* ポインター変数へのポインターです。

戻り値

このメソッドに固有の戻り値はありません。ABBYY FineReader Engine 関数の標準的な戻り値が返されます。

関連項目

Comparator