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

# PageFlushingPolicyEnum

> PageFlushingPolicyEnum in the ABBYY FineReader Engine API — Policies for working with document pages (ImageDocument and Layout) in memory: keep in memory or flush to disk.

PageFlushingPolicyEnum enumeration constants are used to denote the modes of working with document pages (with their [ImageDocument](https://docs.abbyy.com/fine-reader/engine/api-reference/image-related-objects/imagedocument.md) and [Layout](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/layout.md) objects) in memory.

```
typedef enum {
 PFP_KeepInMemory,
 PFP_FlushToDisk,
 PFP_Auto
} PageFlushingPolicyEnum;
```

## Elements

| Name | Description |
| - | - |
| PFP\\\_Auto | Automatic mode. |
| PFP\\\_FlushToDisk | If there are no references to the ImageDocument and the Layout objects for corresponding pages, these objects should be unloaded and saved to disk. |
| PFP\\\_KeepInMemory | The document is always kept in memory. |

## Used in

[IBatchProcessor::PageFlushingPolicy](https://docs.abbyy.com/fine-reader/engine/api-reference/batch-processor/batchprocessor.md#pageflushingpolicy) (Linux and Windows only)

[IFRDocument::PageFlushingPolicy](https://docs.abbyy.com/fine-reader/engine/api-reference/document-related-objects/frdocument.md#pageflushingpolicy)

[IFRPage::Flush](https://docs.abbyy.com/fine-reader/engine/api-reference/document-related-objects/frpage/flush-method.md)

## See also

[Iterating Document Pages](https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages.md)
