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

# PageDefinition Object (IPageDefinition Interface)

This object corresponds to a page of a Document Definition. A Document Definition can comprise one or several pages. Each page of the Document Definition contains the image of the template page and blocks specified on the image. Document Definitions for multipage documents can have key blocks in each page (the **KeyBlock** property). The values of such blocks enable automatic checking of page assembly into documents. All the pages of a Document Definition or a section definition are represented by the [**PageDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagedefinitions.md) object.

The whole page definition can be considered as the top-level block definition which contains all the block definitions of the page definition. The **PageDefinition** object supports the [**IBlockDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blockdefinition.md) interface. You may treat this object as the **BlockDefinition** object.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **Blocks** | [**BlockDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blockdefinitions.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Provides access to the collection of blocks on the page. |
| **Id** | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Returns the identifier of the page definition. |
| **Image** | [**ImageDocument**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagedocument.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Stores the template image. |
| **KeyBlock** | [**BlockDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blockdefinition.md) | Specifies the key block on the page. A key block enables automatic checking of page assembly into documents. The values of key blocks must be identical on all pages of the same document. An example of a key field is the last name of the person who completed the document, which must be written on each page, or a certain identification number. |
| **Section** | [**SectionDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/sectiondefinition.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Returns the Document Definition section containing the page. |

## Methods

| **Name** | **Description** |
| - | - |
| [**DetectBlocks**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagedefinition-detectblocks.md) | Detects blocks of the specified type within the specified region and adds them to the page definition. |
| [**SetImage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagedefinition-setimage.md) | Sets the template image of the page. |

## Related objects

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/PageDefinition.gif?s=a84f54adfe53547688dd973af664dde0)

## Output parameter

This object is the output parameter of the [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md), [**AddNew**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagedefinitions-addnew.md) methods of the [**PageDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagedefinitions.md) object.

## See also

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

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
