> ## 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 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](/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams) property is ignored, and the presence of empty lines is determined by the size of empty space between paragraphs in the original. The [ExportParagraphsAsOneLine](/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams) 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](/fine-reader/engine/api-reference/enumerations/txtexportformatenum)). </Warning>                                                                                                                                                                                                                                                                                                      |

## Used in

[ITextExportParams::LayoutRetentionMode](/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams#layoutretentionmode)
