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

# AddNew Method of the PageDefinitions Object

This method adds a page definition at the end of the collection.

## Syntax

```vb Visual Basic .NET theme={null}
Function AddNew(ImagePath As String) As PageDefinition
```

```cpp C++ theme={null}
HRESULT AddNew(
  BSTR              ImagePath,
  IPageDefinition** Result
);
```

## Parameters

**ImagePath**

\[in] This variable contains the path to the image file which contains the template image of the page definition.

**Result**

\[out, retval] A pointer to the [**IPageDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagedefinition.md)**\*** variable that receives the interface pointer for the added page definition.

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

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