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

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](/fine-reader/engine/api-reference/document-related-objects/frdocument) object, they must all belong to the same document. If you try to export the pages from different FRDocument objects an error will occur.
</Warning>

## 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](/fine-reader/engine/api-reference/document-related-objects/frpage) 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](/fine-reader/engine/api-reference/return-codes).

## See also

[ExportFileWriter](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter)

[AddPages](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/addpages-method)

[Close](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/close-method)
