GroupDocs.Viewer Cloud REST APIs support to render over 50 file formats to HTML5 or Image formats for the whole document, page by page or custom range of pages. To get list of supported formats, You can use the below API.
The following GroupDocs.Viewer Cloud REST API resource has been used in the Supported File Formats example.
{"formats":[{"extension":".pdf","fileFormat":"Portable Document Format"},{"extension":".pcl","fileFormat":"Printer Command Language Document"},{"extension":".doc","fileFormat":"Microsoft Word"},{"extension":".docx","fileFormat":"Microsoft Word"},{"extension":".docm","fileFormat":"Microsoft Word"},{"extension":".dot","fileFormat":"Microsoft Word"},{"extension":".dotx","fileFormat":"Microsoft Word"},{"extension":".dotm","fileFormat":"Microsoft Word"},{"extension":".mobi","fileFormat":"Mobipocket"},{"extension":".xls","fileFormat":"Microsoft Excel"},{"extension":".xlsx","fileFormat":"Microsoft Excel"},{"extension":".xlsm","fileFormat":"Microsoft Excel"},{"extension":".xltx","fileFormat":"Microsoft Excel"},{"extension":".xltm","fileFormat":"Microsoft Excel"},{"extension":".xlsb","fileFormat":"Microsoft Excel"},{"extension":".ppt","fileFormat":"Microsoft PowerPoint"},{"extension":".pptx","fileFormat":"Microsoft PowerPoint"},{"extension":".pps","fileFormat":"Microsoft PowerPoint"},{"extension":".ppsx","fileFormat":"Microsoft PowerPoint"},{"extension":".potm","fileFormat":"Microsoft PowerPoint"},{"extension":".ppsm","fileFormat":"Microsoft PowerPoint"},{"extension":".potx","fileFormat":"Microsoft PowerPoint"},{"extension":".pptm","fileFormat":"Microsoft PowerPoint"},{"extension":".vsd","fileFormat":"Microsoft Visio"},{"extension":".vdx","fileFormat":"Microsoft Visio"},{"extension":".vss","fileFormat":"Microsoft Visio"},{"extension":".vsx","fileFormat":"Microsoft Visio"},{"extension":".vst","fileFormat":"Microsoft Visio"},{"extension":".vtx","fileFormat":"Microsoft Visio"},{"extension":".vsdx","fileFormat":"Microsoft Visio"},{"extension":".vdw","fileFormat":"Microsoft Visio"},{"extension":".vssx","fileFormat":"Microsoft Visio"},{"extension":".vstx","fileFormat":"Microsoft Visio"},{"extension":".vstm","fileFormat":"Microsoft Visio"},{"extension":".vsdm","fileFormat":"Microsoft Visio"},{"extension":".vssm","fileFormat":"Microsoft Visio"},{"extension":".mpp","fileFormat":"Microsoft Project"},{"extension":".mpt","fileFormat":"Microsoft Project"},{"extension":".msg","fileFormat":"Microsoft Outlook Mail Message"},{"extension":".eml","fileFormat":"Microsoft Outlook Mail Message"},{"extension":".ost","fileFormat":"Microsoft Outlook Data Files"},{"extension":".pst","fileFormat":"Microsoft Outlook Data Files"},{"extension":".one","fileFormat":"Microsoft OneNote"},{"extension":".emlx","fileFormat":"Apple Mail"},{"extension":".odt","fileFormat":"OpenDocument Formats"},{"extension":".ott","fileFormat":"OpenDocument Formats"},{"extension":".ods","fileFormat":"OpenDocument Formats"},{"extension":".odp","fileFormat":"OpenDocument Formats"},{"extension":".otp","fileFormat":"OpenDocument Formats"},{"extension":".ots","fileFormat":"OpenDocument Formats"},{"extension":".odg","fileFormat":"OpenDocument Formats"},{"extension":".rtf","fileFormat":"Rich Text Format"},{"extension":".txt","fileFormat":"Plain Text File"},{"extension":".tex","fileFormat":"LaTeX Scientific document"},{"extension":".csv","fileFormat":"Comma-Separated Values"},{"extension":".tsv","fileFormat":"Tab-Separated Values"},{"extension":".html","fileFormat":"HyperText Markup Language"},{"extension":".mht","fileFormat":"HyperText Markup Language"},{"extension":".xml","fileFormat":"Extensible Markup Language"},{"extension":".xps","fileFormat":"XML Paper Specification"},{"extension":".bmp","fileFormat":"Image files"},{"extension":".gif","fileFormat":"Image files"},{"extension":".jpg","fileFormat":"Image files"},{"extension":".jpeg","fileFormat":"Image files"},{"extension":".png","fileFormat":"Image files"},{"extension":".tiff","fileFormat":"Image files"},{"extension":".djvu","fileFormat":"Image files"},{"extension":".svg","fileFormat":"Image files"},{"extension":".webp","fileFormat":"Image files"},{"extension":".dng","fileFormat":"Image files"},{"extension":".jp2","fileFormat":"Image files"},{"extension":".j2c","fileFormat":"Image files"},{"extension":".j2k","fileFormat":"Image files"},{"extension":".jpf","fileFormat":"Image files"},{"extension":".jpx","fileFormat":"Image files"},{"extension":".jpm","fileFormat":"Image files"},{"extension":".dcm","fileFormat":"Digital Imaging and Communications in Medicine"},{"extension":".epub","fileFormat":"Electronic publication"},{"extension":".ico","fileFormat":"Windows Icon"},{"extension":".wmf","fileFormat":"Windows Metafile"},{"extension":".emf","fileFormat":"Windows Metafile"},{"extension":".psd","fileFormat":"Photoshop"},{"extension":".cgm","fileFormat":"Computer Graphics Metafile"}]}
SDK examples
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
usingGroupDocs.Viewer.Cloud.Sdk.Api;usingGroupDocs.Viewer.Cloud.Sdk.Client;usingSystem;namespaceGroupDocs.Viewer.Cloud.Examples.CSharp{// Get All Supported FormatsclassGet_All_Supported_Formats{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newInfoApi(configuration);try{// Get supported file formatsvarresponse=apiInstance.GetSupportedFileFormats();foreach(varentryinresponse.Formats){Console.WriteLine(string.Format("{0}: {1}",entry.FileFormat,string.Join(",",entry.Extension)));}}catch(Exceptione){Console.WriteLine("Exception while calling InfoApi: "+e.Message);}}}}
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
$configuration=newGroupDocs\Viewer\Configuration();$configuration->setAppSid($sid);$configuration->setAppKey($key);$viewerApi=newGroupDocs\Viewer\ViewerApi($configuration);try{$request=newGroupDocs\Viewer\Model\Requests\GetSupportedFileFormatsRequest();$response=$viewerApi->getSupportedFileFormats($request);foreach($response->getFormats()as$key=>$format){echo$format->getFileFormat()." - ".$format->getExtension(),"\n";}}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}
// TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
StringappSid="xxxx";StringappKey="xxx-xx";ViewerApiapiInstance=newViewerApi(appSid,appKey);try{FormatCollectionresponse=apiInstance.getSupportedFileFormats();if(response.getFormats().size()>0){for(Formatformat:response.getFormats()){System.out.println("Format: "+format.toString());}}System.out.println("Executed Successfully");}catch(ApiExceptione){System.err.println("Exception when calling ViewerApi");e.printStackTrace();}
# Load the gemrequire'groupdocs_viewer_cloud'require'common_utilities/Utils.rb'classFile_Formatsdefself.Get_All_Supported_File_Formats()# Getting instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()# Retrieve supported file-formatsresponse=api.get_supported_file_formats()# Print out supported file-formatsputs("Supported file-formats:")response.formats.eachdo|format|puts("#{format.file_format} (#{format.extension})")endendend
# Import modulesimportgroupdocs_viewer_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassViewer_Python_Get_All_Supported_Formats:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()try:# Retrieve supported file-formatsresponse=api.get_supported_file_formats()# Print out supported file-formatsprint("Supported file-formats:")forfileformatinresponse.formats:print('{0} ({1})'.format(fileformat.file_format,fileformat.extension))exceptgroupdocs_viewer_cloud.ApiExceptionase:print("Exception when calling get_supported_viewer_types: {0}".format(e.message))
packageexamples.Supported_File_Formats;importcom.groupdocs.cloud.viewer.client.*;importcom.groupdocs.cloud.viewer.model.*;importcom.groupdocs.cloud.viewer.api.InfoApi;importexamples.Utils;publicclassViewer_Android_Get_Supported_Formats{publicstaticvoidmain(String[]args){InfoApiapiInstance=newInfoApi(Utils.AppSID,Utils.AppKey);try{FormatsResultresponse=apiInstance.getSupportedFileFormats();for(Formatformat:response.getFormats()){System.out.println(format.getFileFormat());}}catch(ApiExceptione){System.err.println("Exception while calling InfoApi:");e.printStackTrace();}}}