> ## 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 オブジェクトの PreprocessPages メソッド

> ABBYY FineReader Engine API の FRDocument オブジェクトにおける PreprocessPages メソッド — 指定されたページを前処理します。向き、白黒反転、幾何学的な歪みを補正し、必要に応じてページ分割を実行します。レイアウト解析の前に実行してください。

このメソッドは、文書内の指定されたページに対して前処理を行います。ページの向きや白黒反転、幾何学的な歪みを補正し、必要に応じてページを分割します。前処理はレイアウト解析の前に実行されます。

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

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

```cpp theme={null}
HRESULT PreprocessPages(
  IIntsCollection*          PageIndices,
  IPagePreprocessingParams* PreprocessingParams,
  IObjectsExtractionParams* ExtractionParams,
  IRecognizerParams*        RecognizerParams
);
```

### C\#

```csharp theme={null}
void PreprocessPages(
  IIntsCollection          PageIndices,
  IPagePreprocessingParams PreprocessingParams,
  IObjectsExtractionParams ExtractionParams,
  IRecognizerParams        RecognizerParams
);
```

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

```vb theme={null}
Sub PreprocessPages( _
  PageIndices As IIntsCollection, _
  [PreprocessingParams As IPagePreprocessingParams = Nothing], _
  [ExtractionParams As IObjectsExtractionParams = Nothing], _
  [RecognizerParams As IRecognizerParams = Nothing] _
)
```

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

PageIndices

\[in] 前処理するページ番号を格納した [IntsCollection](/ja/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) オブジェクトを参照します。

PreprocessingParams

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

ExtractionParams

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

RecognizerParams

\[in] 前処理に必要な認識パラメーター (例: 認識言語) を格納する [RecognizerParams](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams) オブジェクトを参照します。このパラメーターには 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/engine-object-iengine-interface/properties#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)
