Get supported file formats
GroupDocs.Annotation allows to get the list of all supported file formats by following the below steps:
- Call getSupportedFileTypes() method of FileType class;
- Enumerate through the collection of FileType objects.
The following code sample demonstrates how to get supported file formats list.
List<FileType> fileTypes = FileType.getSupportedFileTypes();
//foreach to while statements conversion
Iterator items = (fileTypes).iterator();
while (items.hasNext()) {
FileType fileType = (FileType) items.next();
System.out.println(fileType.getExtension());
}
More resources
Advanced Usage Topics
To learn more about document annotating features, please refer to the advanced usage section.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Annotation for .NET examples, plugins, and showcase
- GroupDocs.Annotation for Java examples, plugins, and showcase
- Document Annotation for .NET MVC UI Example
- Document Annotation for .NET App WebForms UI Modern Example
- Document Annotation for Java App Dropwizard UI Modern Example
- Document Annotation for Java Spring UI Example
Free Online App
Along with full-featured Java library we provide simple, but powerful free Apps.
You are welcome to annotate your PDF, DOC or DOCX, XLS or XLSX, PPT or PPTX, PNG and other documents with free to use online GroupDocs Annotation App.