GroupDocs.Parser allows to get the list of all the supported file formats by the getSupportedFileTypes() static method of the FileType class:
groupdocs.FileType.getSupportedFileTypes();// returns a Java Iterable of FileType objects
This method returns a collection of FileType items with the following members:
Member
Description
getFileFormat()
File type name, e.g. “Microsoft Word Document”.
getExtension()
Filename suffix (including the period “.”), e.g. “.doc”.
FileType also contains static fields that represent all the supported file formats (for example, groupdocs.FileType.PDF).
Here are the steps to get all the supported file formats:
Call the getSupportedFileTypes() static method and obtain a collection of FileType objects;
Iterate through the collection and call getFileFormat() or getExtension() of FileType.
The following example shows how to print all the supported file types:
constgroupdocs=require('@groupdocs/groupdocs.parser');// Get a collection of supported file formats
constsupportedFileTypes=groupdocs.FileType.getSupportedFileTypes();// Iterate over collection and print file format information
constit=supportedFileTypes.iterator();while(it.hasNext()){constfileType=it.next();console.log(`${fileType.getFileFormat()} (${fileType.getExtension()})`);}process.exit(0);
The beginning of the output looks like this:
Microsoft Word Document (.doc)
Word Document Template (.dot)
Microsoft Word Open XML Document (.docx)
Word Open XML Macro-Enabled Document (.docm)
...
More resources
Advanced usage topics
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.
Free online document parser App
Along with the full-featured 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.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.