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

# ProcessPages Method of the FRDocument Object

This method performs preprocessing, layout analysis, recognition, and page and document synthesis of the specified pages in the document.

## Syntax

### C++

```cpp theme={null}
HRESULT ProcessPages(
  IIntsCollection*           PageIndices,
  IDocumentProcessingParams* DocumentProcessingParams
);
```

### C\#

```csharp theme={null}
void ProcessPages(
  IIntsCollection           PageIndices,
  IDocumentProcessingParams DocumentProcessingParams
);
```

### Visual Basic .NET

```vb theme={null}
Sub ProcessPages( _
  PageIndices As IIntsCollection, _
  [DocumentProcessingParams As IDocumentProcessingParams = Nothing]
)
```

## Parameters

PageIndices

\[in] Refers to the [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) object that contains the indices of pages to be recognized. This parameter may be 0. In this case, all pages of the document are processed.

DocumentProcessingParams

\[in] Refers to the [DocumentProcessingParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/documentprocessingparams) object that stores all processing parameters. This parameter may be 0. In this case, the pages are processed with default parameters (all processing parameters are set to default values), or, if a [profile](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) has been loaded, the parameters set by this profile are used.

## Return values

If document processing is interrupted by the user, this method will return E\_ABORT. It also returns the [standard return codes of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

* This method may report events to the listeners attached to the IConnectionPointContainer interface of the [FRDocument](/fine-reader/engine/api-reference/document-related-objects/frdocument) object.
* For Linux and Windows: Depending on the value of the [IEngine::MultiProcessingParams](/fine-reader/engine/api-reference/parameter-objects/multiprocessingparams) property, ABBYY FineReader Engine can distribute processing of multi-page documents to CPU cores.

## See also

[FRDocument](/fine-reader/engine/api-reference/document-related-objects/frdocument)

[Working with Profiles](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)
