Enumerate through the collection of FileType objects*.*
The following example demonstrates how to get supported file formats list.
fromgroupdocs.redactionimportFileTypedeflist_supported_formats():# Retrieve the collection of supported file typessupported_file_types=FileType.get_supported_file_types()# Enumerate the file types sorted by extensionforfile_typeinsorted(supported_file_types,key=lambdax:x.extension):print(file_type)if__name__=="__main__":list_supported_formats()
Bitmap Image File (.bmp)
Comma Separated Values File (.csv)
Microsoft Word Document (.doc)
Word Open XML Macro-Enabled Document (.docm)
Microsoft Word Open XML Document (.docx)
Word Document Template (.dot)
Word Open XML Macro-Enabled Document Template (.dotm)
Word Open XML Document Template (.dotx)
Graphical Interchange Format File (.gif)
Hypertext Markup Language File (.htm)
[TRUNCATED]