Get supported file formats

On this page

GroupDocs.Watermark allows you to get the list of all supported file formats. 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:

const supportedFileTypes = groupdocs.watermark.FileType.getSupportedFileTypes();
supportedFileTypes.forEach(fileType => {
  console.log(fileType.toString());
});

On this page