Get supported file formats

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.

from groupdocs.watermark.common import FileType

def list_supported_formats():
    # Enumerate every file type the library can open
    supported_file_types = FileType.get_supported_file_types()
    for file_type in sorted(supported_file_types, key=lambda x: x.extension):
        print(file_type)

if __name__ == "__main__":
    list_supported_formats()
Bmp (.bmp) - Image
Doc (.doc) - WordProcessing
Docm (.docm) - WordProcessing
Docx (.docx) - WordProcessing
Dot (.dot) - WordProcessing
Dotm (.dotm) - WordProcessing
Dotx (.dotx) - WordProcessing
Eml (.eml) - Email
Emlx (.emlx) - Email
Gif (.gif) - Image
[TRUNCATED]

Download full output

Use case: Build flexible applications that validate user-uploaded files and tell the user whether watermarking is supported.