Get supported file types
GroupDocs.Merger allows to get the list of all supported file types by following the below steps:
- Call getSupportedFileTypes method of FileType class;
- Enumerate through the collection of FileType objects.
The following code sample demonstrates how to get supported file formats list.
List<FileType> fileTypes = FileType.getSupportedFileTypes();
for(FileType fileType : fileTypes)
{
System.out.print(fileType.getExtension());
}