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

# TextAndBackgroundColorModeEnum

> TextAndBackgroundColorModeEnum in the ABBYY FineReader Engine API — Mode of retaining original text and background color during export to PDF or PDF/A.

TextAndBackgroundColorModeEnum enumeration constants are used to define the mode of retaining the original text and background color during export to PDF (PDF/A) format.

```
typedef enum {
 TBCM_Keep,
 TBCM_DontKeep,
 TBCM_Auto
} TextAndBackgroundColorModeEnum;
```

## Elements

| Name | Description |
| - | - |
| TBCM\\\_Auto | Select the mode of retaining the original colors depending on value of the [IPDFExportParams::Colority](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams.md#colority) property: if it is PCM\\\_KeepColority, the colors of the original are kept; otherwise, the colors are not retained in the output file. |
| TBCM\\\_DontKeep | Do not retain the original text and background color, even if [IPDFExportParams::Colority](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams.md#colority) is set to keep colority. |
| TBCM\\\_Keep | Retain the original text and background color in the output file. The colors will be retained regardless of the [IPDFExportParams::Colority](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams.md#colority) value. |

## Used in

[IPDFExportFeatures::TextAndBackgroundColorMode](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures.md#textandbackgroundcolormode)
