# Get supported file formats This article explains how to obtain supported file formats list when viewing documents with GroupDocs.Watermark within your Java applications. [GroupDocs.Watermark](https://products.groupdocs.com/watermark/nodejs-java) allows you to get the list of all [supported file formats]({{< ref "watermark/nodejs-java/getting-started/supported-document-formats.md" >}}). To do this, follow these steps: 1. Call the `getSupportedFileTypes` method of the `FileType` class. 2. Enumerate through the collection of the `FileType` objects. The following code snippet shows how to obtain a list of supported file formats: ```javascript const supportedFileTypes = groupdocs.watermark.FileType.getSupportedFileTypes(); supportedFileTypes.forEach(fileType => { console.log(fileType.toString()); }); ```