> ## 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 enumeration constants are used to denote the modes of working with document pages (with their [ImageDocument](/fine-reader/engine/api-reference/image-related-objects/imagedocument) and [Layout](/fine-reader/engine/api-reference/layout-related-objects/layout) 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](/fine-reader/engine/api-reference/batch-processor/batchprocessor#pageflushingpolicy) (Linux and Windows only)

[IFRDocument::PageFlushingPolicy](/fine-reader/engine/api-reference/document-related-objects/frdocument#pageflushingpolicy)

[IFRPage::Flush](/fine-reader/engine/api-reference/document-related-objects/frpage/flush-method)

## See also

[Iterating Document Pages](/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages)
