Get supported file formats
Leave feedback
GroupDocs.Parser allows to get the list of all the supported file formats by the GetSupportedFileTypes static method:
IEnumerable<FileType> FileType.GetSupportedFileTypes();
This method returns a collection of FileType items with the following members:
Member | Description |
---|---|
FileFormat | File type name e.g. “Microsoft Word Document”. |
Extension | Filename suffix (including the period “.”) e.g. “.doc”. |
Also FileType contains static fields that represent all the supported file formats.
Here are the steps to get all the supported file formats:
- Call GetSupportedFileTypes static method and obtain a collection of FileType objects;
- Iterate through the collection and get FileFormat or Extension of FileType.
The following example shows how to print all the supported file types:
IEnumerable<FileType> supportedFileTypes = FileType.GetSupportedFileTypes();
foreach (FileType fileType in supportedFileTypes)
{
Console.WriteLine(fileType);
}
To learn more about document data extraction features and get familiar how to extract text, images, forms and more, please refer to the advanced usage section.
You may easily run the code above and see the feature in action in our GitHub examples:
Along with full featured .NET library we provide simple, but powerful free Apps.
You are welcome to extract data from PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails and more with our free online Free Online Document Parser App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.