> ## 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 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](/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#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](/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#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](/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#colority) value.                                                                                             |

## Used in

[IPDFExportFeatures::TextAndBackgroundColorMode](/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#textandbackgroundcolormode)
