Get supported file formats

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Parser MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-parser -- dnx GroupDocs.Parser.Mcp --yes
Folders, licensing and more →

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:

MemberDescription
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:

const groupdocs = require('@groupdocs/groupdocs.parser');

// Get a collection of supported file formats
const supportedFileTypes = groupdocs.FileType.getSupportedFileTypes();
// Iterate over collection and print file format information
const it = supportedFileTypes.iterator();
while (it.hasNext()) {
  const fileType = 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.