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

# FRPages Object (IFRPages Interface)

This object is a collection of document pages. The collection is accessible via the [FRDocument](/fine-reader/engine/api-reference/document-related-objects/frdocument) object.

This collection differs from other collections of child objects. It does not have AddNew method, instead you can use the [AddPage](/fine-reader/engine/api-reference/document-related-objects/frdocument/addpage-method) method of the parent FRDocument object. It also does not have DeleteAll method and has additional IndexOf, Remove and Swap methods. See [Working with Collections](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections) for details.

* The indexing of ABBYY FineReader Engine collections starts with 0.
* The foreach statement in C# (for each in Visual Basic .NET) can be used to manipulate the collection.

The FRPages object is a so-called "[connectable object](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-connectable-objects)." For Visual Basic in FRE for Windows, it may be declared WithEvents. For C++ (all supported operating systems), this means that it supports the IConnectionPointContainer interface. To receive notification events during processing, C++ users should create an object derived from the [IFRPagesEvents](/fine-reader/engine/api-reference/document-related-objects/ifrpagesevents) interface and...

* In Linux and macOS, advise it to the FRPage object by the call to the AdviseFREngineObject global function.
* In Windows: set up the connection between it and the events source implemented in the FRPage object by standard COM means.

In Windows: The methods of the FRPages object report information about page processing progress through special outgoing interfaces. These interfaces are IFRPagesEvents (for C++) and the dispinterface DIFRPagesEvents (for Visual Basic). It should be noted that Visual Basic users should not care for details of implementing event interfaces, as this development platform provides easy means for handling them.

## Properties

| Name                                                                                                                  | Type                                                                                                                                                                                                          | Description                                      |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| Application                                                                                                           | [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Returns the Engine object.                       |
| Count                                                                                                                 | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                             | Stores the number of elements in the collection. |
| [Element](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property) | [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Provides access to one page of the collection.   |

## Methods

| Name                                                                                                                  | Description                                            |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [DeleteAt](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/deleteat-method) | Removes an element from the collection.                |
| [IndexOf](/fine-reader/engine/api-reference/document-related-objects/frpages/indexof-method)                          | Returns the index of a page in the collection.         |
| [Item](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/item-method)         | Provides access to a single element of the collection. |
| [Renumber](/fine-reader/engine/api-reference/document-related-objects/frpages/renumber-method)                        | Renumbers the pages in the collection.                 |
| [Swap](/fine-reader/engine/api-reference/document-related-objects/frpages/swap-method)                                | Swaps two pages with the specified indices.            |

## Related objects

<img src="https://mintcdn.com/abbyy/lsETHFYUFiongXSm/images/fine-reader/engine/frpages.gif?s=84758e9ae0d2cf03be384139ed826c8d" alt="FRPages" width="173" height="156" data-path="images/fine-reader/engine/frpages.gif" />[](/fine-reader/engine/api-reference/document-related-objects/frdocument#pages)[](/fine-reader/engine/api-reference/text-related-objects/plaintext)[](/fine-reader/engine/api-reference/layout-related-objects/layout)[](/fine-reader/engine/api-reference/image-related-objects/imagedocument)[](/fine-reader/engine/api-reference/document-related-objects/frpage)[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/document-related-objects/frdocument)

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## Input parameter

This object is passed as an input parameter to the [AddPages](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter/addpages-method) method of the [ExportFileWriter](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter) object.

## Samples

The object is used in the following code samples:

* Linux: [CustomLanguage](/fine-reader/engine/guided-tour/samples#customlanguage)
* Windows: [CustomLanguage](/fine-reader/engine/guided-tour/samples#customlanguage), [RecognizedTextProcessing](/fine-reader/engine/guided-tour/samples#recognizedtextprocessing); and demo tools: [BatchProcessingRecognition](/fine-reader/engine/guided-tour/samples#batchprocessingrecognition), [Engine Predefined Processing Profiles](/fine-reader/engine/guided-tour/samples#engine_predefined_processing_profiles).

## See also

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

[FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage)

[Working with Collections](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections)

[Working with Connectable Objects](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-connectable-objects)

[Working with Properties](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
