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

# ForceApplyDocumentDefinition Method of the Batch Object

This method forcibly matches specified Document Definition section to selected pages of the batch. This method is useful when a static element (e.g. separator) of the Document Definition was not found on the images, but the Document Definition still can be applied to the images (other fields and static elements were found).

Use this method if it is impossible to match Document Definition to documents automatically (e.g. with the help of the [**ApplyDocumentDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-applydocumentdefinitions.md) or [**Recognize**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-recognize.md) methods of the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object).

## Syntax

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

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

## Parameters

**PageIds**

\[in] This parameter refers to the [**IntsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/intscollection.md) object that contains a set of identifiers of the batch pages to match Document Definition section to.

**Section**

\[in] This parameter refers to the [**SectionDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/sectiondefinition.md) object that contains the section of Document Definition to match.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

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

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