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.Annotation 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-annotation -- dnx GroupDocs.Annotation.Mcp --yes
Folders, licensing and more →

On this page

GroupDocs.Annotation allows you to get the list of supported file formats. To do this, follow these steps:

  1. Call the getSupportedFileTypes method of the FileType class.
  2. Enumerate through the collection of FileType objects.

The following code snippet shows how to get supported file formats list:

// This example demonstrates file types support

// Get list of supported file
List<FileType> fileTypes = FileType.getSupportedFileTypes();
Iterator tmp0 = (fileTypes).iterator();

// Iterating elements and print file types
while (tmp0.hasNext()) {
    FileType fileType = (FileType) tmp0.next();
    System.out.println(fileType.getExtension());
}

On this page