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

# GetNextProcessedPage Method of the BatchProcessor Object

<Note>
  This method is implemented in FRE for Linux and Windows.
</Note>

This method provides the background processing until the next recognized image is available.

When calling GetNextProcessedPage method, Batch Processor calls the [GetNextImageFile](/fine-reader/engine/api-reference/batch-processor/iimagesource/getnextimagefile-method) method of the [IImageSource](/fine-reader/engine/api-reference/batch-processor/iimagesource) interface. The method returns the next image file from the source queue. For each page of the image file a new processing task is created, and this task is passed to one of the recognition processes. If all the tasks for one file have been passed for processing, but not all of the recognition processes are occupied, the GetNextImageFile method is called again. This is done until the first image page has been converted and passed to the user. Pages are returned to the user using the GetNextProcessedPage method in the order they have been taken from the image source.

Call the GetNextProcessedPage method in a loop until the method returns 0, which means that there are no more images in the source and all the processed images have been returned to the user.

<Warning>
  The page returned by the GetNextProcessedPage method exists until the next call of this method. Therefore, if you want to save this page, you must save it using the methods of the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) object or add it to an existing document using the [IFRDocument::AddPage](/fine-reader/engine/api-reference/document-related-objects/frdocument/addpage-method) method BEFORE the next call of the GetNextProcessedPage method.
</Warning>

## Syntax

### C++

```cpp theme={null}
HRESULT GetNextProcessedPage( IFRPage** Result );
```

### C\#

```csharp theme={null}
IFRPage GetNextProcessedPage();
```

### Visual Basic .NET

```vb theme={null}
Function GetNextProcessedPage() As IFRPage
```

## Parameters

Result

\[out, retval] A pointer to the IFRPage\* variable that receives the interface pointer for the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) object corresponding to the output page.

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

[BatchProcessor](/fine-reader/engine/api-reference/batch-processor/batchprocessor)
