Get supported file types
GroupDocs.Merger allows to get the list of all supported file types by following the below steps:
- Call GetSupportedFileTypes of FileType class;
- Enumerate through the collection of FileType objects.
The following code sample demonstrates how to get supported file formats list.
IEnumerable<FileType> supportedFileTypes = FileType
.GetSupportedFileTypes()
.OrderBy(f => f.Extension);
foreach (FileType fileType in supportedFileTypes)
Console.WriteLine(fileType);