> ## 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 Object の SynthesizePages メソッド

> ABBYY FineReader Engine API の FRDocument Object における SynthesizePages メソッド — 指定したページに対して文書合成を実行します。

このメソッドは、文書内の指定したページに対して文書合成を実行します。

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

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

```cpp theme={null}
HRESULT SynthesizePages(
  IIntsCollection*             PageIndices,
  ISynthesisParamsForDocument* SynthesisParamsForDocument
);
```

### C\#

```csharp theme={null}
void SynthesizePages(
  IIntsCollection             PageIndices,
  ISynthesisParamsForDocument SynthesisParamsForDocument
);
```

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

```vb theme={null}
Sub SynthesizePages( _
  PageIndices As IIntsCollection, _
  [SynthesisParamsForDocument As ISynthesisParamsForDocument = Nothing] _
)
```

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

PageIndices

\[in] 文書合成の対象となるページのインデックスを含む [IntsCollection](/ja/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) オブジェクトを指定するパラメーターです。

SynthesisParamsForDocument

\[in] 文書合成のパラメーターを格納する [SynthesisParamsForDocument](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsfordocument) オブジェクトです。このパラメーターには 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>

* 次の場合、文書合成の段階は省略できます。
  * 認識テキストを TXT 形式にエクスポートする場合。この形式へのエクスポートでは、合成情報は使用されません。
  * 文書を [PDF ImageOnly](/ja/fine-reader/engine/api-reference/enumerations/pdfexportmodeenum) 形式にエクスポートする場合。このモードでは、認識テキストとレイアウト情報は使用されません。

それ以外のすべての場合は、文書合成を実行する必要があります。文書合成を省略するとエラーが発生します。

* 名前に "Process" を含むメソッド (例: IFRDocument::Process、IFRDocument::ProcessPages) には、文書合成の段階が含まれています。[FRPage](/ja/fine-reader/engine/api-reference/document-related-objects/frpage) オブジェクトの処理メソッドにはこれが含まれないため、それらを使用した後、エクスポートする前に、文書合成を実行するメソッドを明示的に呼び出す必要があります。

* 文書合成の段階を高速化し、メモリ使用量を削減できます。ページ合成中に [ISynthesisParamsForPage::DetectFontFormattingAtPageLevel](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsforpage#detectfontformattingatpagelevel) プロパティを TRUE に設定すると、その後の文書合成ではフォントパラメーターおよび文書構造の検出 ([ISynthesisParamsForDocument::DetectFontFormatting](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsfordocument#detectfontformatting) および [ISynthesisParamsForDocument::DetectDocumentStructure](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsfordocument#detectdocumentstructure)) を無効にできます。ただし、品質が低下する可能性があります。

* このメソッドは、[FRDocument](/ja/fine-reader/engine/api-reference/document-related-objects/frdocument) オブジェクトの IConnectionPointContainer インターフェイスに接続されているリスナーに対してイベントを通知する場合があります。

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

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

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

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