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

# HTMLSynthesisModeEnum

> HTMLSynthesisModeEnum in the ABBYY FineReader Engine API — Modes of synthesizing HTML code from recognized text.

HTMLSynthesisModeEnum enumeration constants are used to denote available modes of synthesizing HTML code from the recognized text.

```
typedef enum {
 HSM_PlainText,
 HSM_FormattedStream,
 HSM_FlexibleLayout,
 HSM_ExactCopy
} HTMLSynthesisModeEnum;
```

## Elements

| Name | Description |
| - | - |
| HSM\\\_ExactCopy | The output HTML file maintains the formatting of the original document. |
| HSM\\\_FlexibleLayout | The whole structure of the document is retained in the output HTML file. |
| HSM\\\_FormattedStream | Paragraphs and fonts of the recognized text are retained in the output HTML file. The \<p> tag is used. |
| HSM\\\_PlainText | Only paragraphs are retained in the recognized text with the use of the \<p> tag. |

## Used in

[IHTMLExportParams::HTMLSynthesisMode](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/htmlexportparams.md#htmlsynthesismode)
