List and print all supported file types
Leave feedback
The Supported file formats page lists all file formats supported by GroupDocs.Viewer.
To list or print out all the supported file formats within your application, follow these steps:
- Call the getSupportedFileTypes method of the FileType class.
- Enumerate the collection of the FileType objects.
The following code snippet shows how to list supported file formats in the console:
import com.groupdocs.viewer.FileType;
// ...
List<FileType> supportedFileTypes = FileType.getSupportedFileTypes();
for (FileType fileType : supportedFileTypes) {
System.out.println(fileType);
}
The following image shows a sample console output:
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.