TxtLoadOptions class
TxtLoadOptions class
Options for loading Txt documents.
Font Configuration for Plain Text:
Since TXT files don’t contain font information, use DefaultTextFont to specify the font for rendering the plain text content during conversion.
The TxtLoadOptions type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init | Initializes a new instance of TxtLoadOptions. |
Properties
| Property | Description |
|---|---|
| default_font | The font used when rendering plain text content during conversion; since TXT files lack font information, this property specifies the display font for the text content (default: Arial 10pt). |
| detect_numbering_with_whitespaces | The property allows specifying how numbered list items are recognized when a plain text document is converted. The default value is True. |
| encoding | The encoding used when loading a Txt document; can be None (default). |
| format | The input document file type. |
| leading_spaces_options | The preferred option for handling leading spaces. Default value is TxtLeadingSpacesOptions.convert_to_indent. |
| margin_settings | The margin settings. |
| size_settings | The size settings as defined by IPageSizeOptions. |
| trailing_spaces_options | The preferred option for handling trailing spaces. Default value is TxtTrailingSpacesOptions.trim. |