Get supported file formats
Leave feedback
On this page
GroupDocs.Comparison allows you to get the list of all supported file formats. To do this, follow these steps:
- Call the
getSupportedFileTypes
method of theFileType
class. - Enumerate through the collection of the
FileType
objects.
The following code snippet shows how to obtain a list of supported file formats:
fileTypes = await groupdocs.comparison.FileType.getSupportedFileTypes();
let count = 0;
while (fileTypes.size() > count)
{
console.log(fileTypes.get(count).toString());
count++;
}
The result is as follows:
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.