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

# PagesGroupingEnum

**PagesGroupingEnum** enumeration constants are used to denote the types of grouping images into documents.

```cpp theme={null}
typedef enum {
 PG_NotGroupPages,
 PG_GroupPagesByPagesCount,
 PG_GroupPagesByOriginFile,
 PG_GroupPagesByEmptyPageDelimiters,
 PG_GroupPagesByBarcode
} PagesGroupingEnum;
```

## Elements

| **Name** | **Description** |
| - | - |
| PG\_NotGroupPages | Do not group images. All the images will be added to one document. |
| PG\_GroupPagesByPagesCount | Group every *n* image pages into a separate document. The number of pages (*n*) is specified in the [**IImageGroupingParams::PagesCount**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagegroupingparams.md#pagescount) property. |
| PG\_GroupPagesByOriginFile | Group image pages as in the original files. Pages from each image file will be grouped into a separate document. |
| PG\_GroupPagesByEmptyPageDelimiters | Use blank pages to group images. A new document will be created at each blank page found in the image file. The blank pages can then be deleted (set the [**IImageGroupingParams::DeleteDelimiters**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagegroupingparams.md#deletedelimiters) property to TRUE if required). |
| PG\_GroupPagesByBarcode | Use barcodes to group images. A new document will be created at each page with a barcode of the specified type or value (set the [**BarcodeType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagegroupingparams.md#barcodetype) and [**BarcodeValue**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagegroupingparams.md#barcodevalue) properties of the [**ImageGroupingParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagegroupingparams.md) object). The barcode pages can then be deleted (set the [**IImageGroupingParams::DeleteDelimiters**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagegroupingparams.md#deletedelimiters) property to TRUE if required). |

## Used in

[**IImageGroupingParams::GroupingRule**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagegroupingparams.md)
