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

# TextLayoutRetentionModeEnum

> TextLayoutRetentionModeEnum in the ABBYY FineReader Engine API — Modes of retaining original document layout during export to TXT.

TextLayoutRetentionModeEnum enumeration constants are used to describe available modes of retaining original document layout during export to TXT.

```
typedef enum {
 TXTLRM_Auto,
 TXTLRM_ExactCopy,
 TXTLRM_LogicalStructure
} TextLayoutRetentionModeEnum;
```

## Elements

| Name | Description |
| - | - |
| TXTLRM\\\_Auto | No specific settings are used. |
| TXTLRM\\\_ExactCopy | The original layout is simulated by inserting spaces. When displayed with a monospace font, the text and table columns will be level. The distance between blocks will be approximately the same. The [InsertEmptyLineBetweenParagraphs](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams.md) property is ignored, and the presence of empty lines is determined by the size of empty space between paragraphs in the original. The [ExportParagraphsAsOneLine](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams.md) property is also ignored, and the line breaks are always kept. This mode is not intended for right-to-left or vertical texts. |
| TXTLRM\\\_LogicalStructure | The document logical structure and appearance is recreated as closely as possible, including headers, footnotes, incuts, and subscript and superscript symbols within a limited range. \[!WARNING] Do not use this constant in combination with the TEF\\\_CSVFullLayout or TEF\\\_CSVTablesOnly constant (see [TXTExportFormatEnum](https://docs.abbyy.com/fine-reader/engine/api-reference/enumerations/txtexportformatenum.md)). |

## Used in

[ITextExportParams::LayoutRetentionMode](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams.md#layoutretentionmode)
