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

# Close Method of the ExportFileWriter Object

> Close method of the ExportFileWriter Object in the ABBYY FineReader Engine API — This method finalizes the file that was exported to PDF format with AddPage or AddPages methods of the ExportFileWriter object.

<Warning>
  The ExportFileWriter object is deprecated and will be removed in future versions.
</Warning>

This method finalizes the file that was exported to PDF format with [AddPage](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/addpage-method) or [AddPages](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/addpages-method) methods of the [ExportFileWriter](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter) object.

You cannot use the file until it is finalized.

The Close method is called automatically when the [ExportFileWriter](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter) object is destroyed.

## Syntax

### C++

```cpp theme={null}
HRESULT Close();
```

### C\#

```csharp theme={null}
void Close();
```

### Visual Basic .NET

```vb theme={null}
Sub Close()
```

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

[AddPage](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/addpage-method)

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