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

> AddPage method of the ExportFileWriter Object in the ABBYY FineReader Engine API — This method saves recognized text from a single page into a file in PDF format.

> [!WARNING]
>
> The ExportFileWriter object is deprecated and will be removed in future versions.

This method saves recognized text from a single page into a file in PDF format. The method can be called several times till all recognized pages are saved into the file.

> [!WARNING]
>
> If the exported pages have been obtained via the [FRDocument](https://docs.abbyy.com/fine-reader/engine/api-reference/document-related-objects/frdocument.md) object, they must all belong to the same document. If you try to export the pages from different FRDocument objects an error will occur.

## Syntax

### C++

```cpp theme={null}
HRESULT AddPage( IFRPage* Page );
```

### C\#

```csharp theme={null}
void AddPage( FRPage Page );
```

### Visual Basic .NET

```vb theme={null}
Sub AddPage(Page As FRPage)
```

## Parameters

Page

\[in] Refers to the [FRPage](https://docs.abbyy.com/fine-reader/engine/api-reference/document-related-objects/frpage.md) object that corresponds to the page to be exported into PDF. This parameter must not be 0.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](https://docs.abbyy.com/fine-reader/engine/api-reference/return-codes.md).

## See also

[ExportFileWriter](https://docs.abbyy.com/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter.md)

[AddPages](https://docs.abbyy.com/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/addpages-method.md)

[Close](https://docs.abbyy.com/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/close-method.md)
