> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FRDocument オブジェクトの ProcessPages メソッド

> ABBYY FineReader Engine API の FRDocument オブジェクトの ProcessPages メソッド — 指定されたページに対して前処理、レイアウト解析、認識、ページ合成、および文書の合成を実行します。

このメソッドは、Document 内の指定されたページに対して、前処理、レイアウト解析、認識、ページ合成、および文書の合成を実行します。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT ProcessPages(
  IIntsCollection*           PageIndices,
  IDocumentProcessingParams* DocumentProcessingParams
);
```

### C\#

```csharp theme={null}
void ProcessPages(
  IIntsCollection           PageIndices,
  IDocumentProcessingParams DocumentProcessingParams
);
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Sub ProcessPages( _
  PageIndices As IIntsCollection, _
  [DocumentProcessingParams As IDocumentProcessingParams = Nothing]
)
```

<div id="parameters">
  ## パラメーター
</div>

PageIndices

\[in] 認識対象ページのインデックスを含む [IntsCollection](/ja/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) オブジェクトを参照します。このパラメーターには 0 を指定できます。その場合、ドキュメント内のすべてのページが処理されます。

DocumentProcessingParams

\[in] すべての処理パラメーターを格納する [DocumentProcessingParams](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/documentprocessingparams) オブジェクトを参照します。このパラメーターには 0 を指定できます。その場合、ページは既定のパラメーターで処理されます (すべての処理パラメーターが既定値に設定されます) 。また、[プロファイル](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) が読み込まれている場合は、そのプロファイルで設定されたパラメーターが使用されます。

<div id="return-values">
  ## 戻り値
</div>

ドキュメント処理がユーザーによって中断された場合、このメソッドは E\_ABORT を返します。また、[ABBYY FineReader Engine 関数の標準戻りコード](/ja/fine-reader/engine/api-reference/return-codes)も返します。

<div id="remarks">
  ## 備考
</div>

* このメソッドは、[FRDocument](/ja/fine-reader/engine/api-reference/document-related-objects/frdocument) オブジェクトの IConnectionPointContainer インターフェイスにアタッチされたリスナーにイベントを報告することがあります。
* Linux および Windows の場合: [IEngine::MultiProcessingParams](/ja/fine-reader/engine/api-reference/parameter-objects/multiprocessingparams) プロパティの値に応じて、ABBYY FineReader Engine は複数ページのドキュメントの処理を CPU コアに分散して実行できます。

<div id="see-also">
  ## 関連項目
</div>

[FRDocument](/ja/fine-reader/engine/api-reference/document-related-objects/frdocument)

[プロファイルの操作](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)
