> ## 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.

# Batch オブジェクトの ForceApplyDocumentDefinition メソッド

このメソッドは、指定した文書定義セクションを、バッチ内の選択したページに強制的にマッチングします。Document Definition の静的要素 (区切りなど) が画像上で見つからなかったものの、他の field や静的要素は見つかっており、その Document Definition を画像に適用できる場合に便利です。

Document Definition をドキュメントに自動でマッチングできない場合 (たとえば、[**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**ApplyDocumentDefinitions**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-applydocumentdefinitions.md) メソッドや [**Recognize**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-recognize.md) メソッドではマッチングできない場合) に、このメソッドを使用してください。

## 構文

```vb Visual Basic .NET theme={null}
Sub ForceApplyDocumentDefinition( _
  PageIds As IntsCollection, _
  Section As SectionDefinition _
)
```

```cpp C++ theme={null}
HRESULT ForceApplyDocumentDefinition(
  IIntsCollection*    PageIds,
  ISectionDefinition* Section
);
```

## パラメーター

**PageIds**

\[in] このパラメーターは、文書定義セクションをマッチングする対象となるバッチページの識別子のセットを含む [**IntsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md) オブジェクトを参照します。

**Section**

\[in] このパラメーターは、マッチングする Document Definition のセクションを含む [**SectionDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/sectiondefinition.md) オブジェクトを参照します。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

[**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md)

[**IBatch::Recognize**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-recognize.md)
