Get supported file formats

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