GroupDocs.Merger for Python via .NET supports over 70 document formats. You can retrieve the complete list at runtime by calling FileType.get_supported_file_types(), which returns a collection of FileType objects. Each object exposes:
ft.file_format — human-readable format name (e.g. "Portable Document Format File").
Call FileType.get_supported_file_types() to obtain the collection.
Iterate and read file_format and extension from each FileType object.
fromgroupdocs.merger.domainimportFileTypedeflist_supported_file_types():# Retrieve the complete collection of supported file typessupported_types=FileType.get_supported_file_types()# Print the format name and extension for each supported typeforftinsupported_types:print(ft.file_format,ft.extension)if__name__=="__main__":list_supported_file_types()
Import FileType: FileType is imported from groupdocs.merger.domain (not from groupdocs.merger.domain.options).
Retrieve Collection: FileType.get_supported_file_types() is a static method that returns all formats the library can handle for merge, split, and other operations.
Print Details: Each FileType element exposes .file_format for a descriptive name and .extension for the dot-prefixed extension. Additional boolean properties such as .is_image, .is_archive, and .is_text allow programmatic format categorisation.
Tip
You can filter the results by format family using the boolean properties on FileType, for example [ft for ft in supported_types if ft.is_image] to get only image formats.