FileType class
Leave feedback
On this page
Represents a file type.
Learn more
- https://docs.groupdocs.com/redaction/python-net/supported-document-formats/
- https://docs.groupdocs.com/redaction/python-net/get-supported-file-formats/
- https://docs.groupdocs.com/redaction/python-net/get-file-info/
The FileType type exposes the following members:
| Method | Description |
|---|---|
| equals | Determines whether the current FileType is the same as the specified FileType object. |
| equals | Determines whether the current FileType is the same as the specified object. |
| from_extension | Maps file extension to file type. |
| get_hash_code | Returns the hash code for the current FileType object. |
| get_supported_file_types | Retrieves supported file types. |
| to_string | Returns a string that represents the current object. |
| Property | Description |
|---|---|
| extension | The filename suffix (including the period “.”), for instance “.doc”. |
| file_format | The file type name, e.g., “Microsoft Word Document”. |
| Field | Description |
|---|---|
| UNKNOWN | Represents unknown file type. |
| TIF | Tagged Image File (.tif) |
| TIFF | Tagged Image File Format (.tiff) |
| JPG | JPEG Image (.jpg) |
| JPEG | JPEG Image (.jpeg) |
| PNG | Portable Network Graphic (.png) |
| GIF | Graphical Interchange Format File (.gif) |
| BMP | Bitmap Image File (.bmp) |
| JP2 | JPEG 2000 Core Image File (.jp2) |
| WEBP | WebP Image (.webp) |
| DJVU | DjVu Image (.djvu) |
| HTM | Hypertext Markup Language File (.htm) |
| HTML | Hypertext Markup Language File (.html) |
| Portable Document Format File (.pdf) | |
| PPT | PowerPoint Presentation (.ppt) |
| PPTX | PowerPoint Open XML Presentation (.pptx) |
| ODP | OpenDocument Presentation (.odp) |
| PPS | PowerPoint Slide Show (.pps) |
| PPSX | PowerPoint Open XML Slide Show (.ppsx) |
| PPTM | PowerPoint Open XML Macro-Enabled Presentation |
| POTX | PowerPoint Open XML Presentation Template (.potx) |
| POTM | PowerPoint Open XML Macro-Enabled Presentation Template (.potm) |
| PPSM | PowerPoint Open XML Macro-Enabled Slide (.ppsm) |
| OTP | OpenDocument Presentation Template (.otp) |
| XLS | Excel Spreadsheet (.xls) |
| XLSX | Microsoft Excel Open XML Spreadsheet (.xlsx) |
| XLSM | Excel Open XML Macro-Enabled Spreadsheet (.xlsm) |
| XLSB | Excel Binary Spreadsheet (.xlsb) |
| XLTX | Excel Open XML Spreadsheet Template (.xltx) |
| XLTM | Excel Open XML Macro-Enabled Spreadsheet Template (.xltm) |
| XLT | Excel Template (.xlt) |
| CSV | Comma Separated Values File (.csv) |
| TSV | Tab Separated Values File (.tsv) |
| TAB | Tab Separated Values File (.tab) |
| ODS | OpenDocument Spreadsheet (.ods) |
| OTS | OpenDocument Spreadsheet Template (.ots) |
| NUMBERS | Apple Numbers Spreadsheet (.numbers) |
| MD | Markdown Documentation File (.md) |
| DOC | Microsoft Word Document (.doc) |
| DOCX | Microsoft Word Open XML Document (.docx) |
| DOCM | Word Open XML Macro-Enabled Document (.docm) |
| DOT | Word Document Template (.dot) |
| DOTX | Word Open XML Document Template (.dotx) |
| DOTM | Word Open XML Macro-Enabled Document Template (.dotm) |
| RTF | Rich Text Format File (.rtf) |
| TXT | Plain Text File (.txt) |
| LOG | Log File (.log) |
| ODT | OpenDocument Text Document (.odt) |
| OTT | OpenDocument Document Template (.ott) |
Task guides that use FileType:
- module
groupdocs.redaction
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.