FileType class

FileType class

Represents a file type. Provides methods to obtain a list of all file types supported by GroupDocs.Redaction, detect file type by extension, etc.

The FileType type exposes the following members:

Properties

Property Description
file_format Gets file type name, for example “Microsoft Word Document”.
extension Gets filename suffix (including the period “.”), for instance “.doc”.
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)
htm Hypertext Markup Language File (.htm)
html Hypertext Markup Language File (.html)
pdf Portable Document Format File (.pdf)
ppt PowerPoint Presentation (.ppt)
pptx PowerPoint Open XML Presentation (.pptx)
odp OpenDocument Presentation (.odp)
xls Excel Spreadsheet (.xls)
xlsx Microsoft Excel Open XML Spreadsheet (.xlsx)
xlsm Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
xlsb Excel Binary Spreadsheet (.xlsb)
csv Comma Separated Values File (.csv)
tsv Tab Separated Values File (.tsv)
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)
odt OpenDocument Text Document (.odt)
ott OpenDocument Document Template (.ott)

Methods

Method Description
from_extension Maps file extension to file type.
get_supported_file_types Retrieves supported file types
equals Determines whether the current FileType is the same as specified FileType object.

Remarks

Learn more | | | | |

See Also