FileFormat class
FileFormat class
Specifies a document file format. Used both as input format (when loading a document for conversion to Markdown) and as output format (when exporting Markdown to a document).
Pass a value from this enum to the LoadOptions constructor to explicitly specify the source document format, or use FileFormat.unknown to let the library detect it automatically. Use MarkdownConverter.get_supported_formats to retrieve all formats supported for conversion.
The FileFormat type exposes the following members:
Fields
| Field | Description |
|---|---|
| Unknown | The file format is not specified. |
| Doc | Microsoft Word 97-2003 Document (.doc). |
| Docx | Microsoft Word Document (.docx). |
| Docm | Microsoft Word Macro-Enabled Document (.docm). |
| Dot | Microsoft Word 97-2003 Template (.dot). |
| Dotx | Microsoft Word Template (.dotx). |
| Dotm | Microsoft Word Macro-Enabled Template (.dotm). |
| Rtf | Rich Text Format (.rtf). |
| Odt | OpenDocument Text (.odt). |
| Ott | OpenDocument Text Template (.ott). |
| Xlsx | Microsoft Excel Spreadsheet (.xlsx). |
| Xls | Microsoft Excel 97-2003 Spreadsheet (.xls). |
| Xlsb | Microsoft Excel Binary Spreadsheet (.xlsb). |
| Xlsm | Microsoft Excel Macro-Enabled Spreadsheet (.xlsm). |
| Csv | Comma-Separated Values (.csv). |
| Tsv | Tab-Separated Values (.tsv). |
| Ods | OpenDocument Spreadsheet (.ods). |
| Ots | OpenDocument Spreadsheet Template (.ots). |
| Portable Document Format (.pdf). | |
| Epub | Electronic Publication (.epub). |
| Mobi | Mobipocket E-Book (.mobi). |
| Txt | Plain Text (.txt). |
| Md | Markdown (.md). Used as input format for reverse conversion (Markdown to document). |
| Chm | Compiled HTML Help (.chm). |
See Also
- module
groupdocs.markdown