Quickly retrieve the complete list of file formats supported by GroupDocs.Watermark. This lets your application check compatibility dynamically before processing a document — for example, to validate user-uploaded files.
List supported file formats
FileType.get_supported_file_types() returns every supported file type. Each item exposes its extension and a friendly description.
fromgroupdocs.watermark.commonimportFileTypedeflist_supported_formats():# Enumerate every file type the library can opensupported_file_types=FileType.get_supported_file_types()forfile_typeinsorted(supported_file_types,key=lambdax:x.extension):print(file_type)if__name__=="__main__":list_supported_formats()