ComparePageTextsWith
ページ操作
Small Business エディションが必要です。Delphi、C++Builder、Lazarus のコードでは、ライブラリを TPDFlibSmallBusiness(ユニット PDFlibSmallBusiness)または TPDFlibEnterprise として作成します。Small Business 版と Enterprise 版の DLL および ActiveX ビルドでは、そのまま利用できます。Single エディションでもメソッド自体は残っており、0、空文字列、または False を返し、LastErrorCode に 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED) を設定します
説明
抽出したテキストに基づき、2 つの文書をページごとに比較します
構文
Delphi
Function ComparePageTextsWith(Other: TPDFlib; Out FirstDifferentPage, ThisPageCount, OtherPageCount: Integer): Integer; Virtual;ActiveX
Function PDFlib::ComparePageTextsWith(Other As Object, ByRef FirstDifferentPage As Long, ByRef ThisPageCount As Long, ByRef OtherPageCount As Long) As LongDLL
int DLComparePageTextsWith(int InstanceID, int OtherInstanceID, int* FirstDifferentPage, int* ThisPageCount, int* OtherPageCount);パラメータ
| Other | 2 つ目の文書。専用のライブラリ インスタンスに読み込まれます。DLL と Dylib は、そのインスタンスに対して DLCreateLibrary が返すインスタンスハンドルを OtherInstanceID として渡し、Automation は相手側のコントロール オブジェクトを渡します |
|---|---|
| FirstDifferentPage | テキストが異なる最初のページ。共通するすべてのページが一致する場合は 0 |
| ThisPageCount, OtherPageCount | 両文書のページ数 |
戻り値
抽出テキストが異なるページ数。ページ数の差は件数パラメーターで示されます
備考
比較では生の抽出(オプション 8)を使用するため、空白のレイアウトが結果に影響します