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

# AddPage Method of the MultipageImageWriter Object

This method appends an image to the end of the multi-page image file.

## Syntax

### C++

```cpp theme={null}
HRESULT AddPage( IImage* ImagePage );
```

### C\#

```csharp theme={null}
void AddPage( IImage ImagePage );
```

### Visual Basic .NET

```vb theme={null}
Sub AddPage(ImagePage As IImage)
```

## Parameters

ImagePage

\[in] This variable refers to the [Image](/fine-reader/engine/api-reference/image-related-objects/image) object corresponding to the image to be appended.

## Return values

This method returns E\_INVALIDARG if the saving format is black-and-white while the format of the image being appended is gray or color. It may also return the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

If you create the MultipageImageWriter object for an one-page format, you can add no more than one page to the resulting file.

## See also

[MultipageImageWriter](/fine-reader/engine/api-reference/image-related-objects/multipageimagewriter)
