GroupDocs.conversion Cloud REST APIs support document conversion tools to convert files from 65+ supported formats to get high-quality output in quickly and reliably. To get a list of supported formats, You can use the below API.
Resource
The following GroupDocs.conversion Cloud REST API resource has been used in the Supported File Formats example.
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.
usingSystem;usingGroupDocs.Conversion.Cloud.Sdk.Api;usingGroupDocs.Conversion.Cloud.Sdk.Client;usingGroupDocs.Conversion.Cloud.Sdk.Model.Requests;namespaceGroupDocs.Conversion.Cloud.Examples.CSharp{// Get All Supported Formats For Provided DocumentclassGet_All_Possible_Conversions_For_Document{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newInfoApi(configuration);try{// Get supported file formatsvarresponse=apiInstance.GetSupportedConversionTypes(newGetSupportedConversionTypesRequest("conversions/sample.docx",Common.MyStorage));foreach(varentryinresponse){foreach(varformatsinentry.TargetFormats){Console.WriteLine(string.Format("{0} TO {1}",entry.SourceFormat,string.Join(",",formats)));}}}catch(Exceptione){Console.WriteLine("Exception while calling InfoApi: "+e.Message);}}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$infoApi=CommonUtils::GetInfoApiInstance();$request=newGroupDocs\Conversion\Model\Requests\GetSupportedConversionTypesRequest("conversions\\sample.docx",CommonUtils::$MyStorage,null);$response=$infoApi->getSupportedConversionTypes($request);echo'<b>Supported file formats<br /></b>';foreach($responseas$key=>$format){echo$format->getSourceFormat(),"<br />";}}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}
packageexamples.Supported_File_Formats;importcom.groupdocs.cloud.conversion.client.*;importcom.groupdocs.cloud.conversion.model.*;importcom.groupdocs.cloud.conversion.model.requests.*;importjava.util.List;importcom.groupdocs.cloud.conversion.api.*;importexamples.Utils;publicclassConversion_Java_Get_Supported_Formats_For_Document{publicstaticvoidmain(String[]args){InfoApiapiInstance=newInfoApi(Utils.AppSID,Utils.AppKey);try{GetSupportedConversionTypesRequestrequest=newGetSupportedConversionTypesRequest("conversions/sample.docx",Utils.MYStorage,null);List<SupportedFormat>response=apiInstance.getSupportedConversionTypes(request);for(SupportedFormatentry:response){for(Stringformats:entry.getTargetFormats()){System.out.println(entry.getSourceFormat()+" TO "+formats);}}}catch(ApiExceptione){System.err.println("Exception while calling InfoApi:");e.printStackTrace();}}}
# Load the gemrequire'groupdocs_conversion_cloud'require'common_utilities/Utils.rb'classFile_Formatsdefself.Conversion_Ruby_Get_All_Supported_Formats_For_Document()# Getting instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()$request=GroupDocsConversionCloud::GetSupportedConversionTypesRequest.new("one-page.docx",$myStorage,"")# Retrieve supported file-formats$response=api.get_supported_conversion_types($request)# Print out supported file-formatsputs("Supported file-formats:")$response.eachdo|format|puts("#{format.source_format} to [#{format.target_formats.join(', ')}]")endendend
# Import modulesimportgroupdocs_conversion_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassConversion_Python_Get_All_Supported_Formats_For_Document:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()try:# Retrieve supported conversion typesrequest=groupdocs_conversion_cloud.GetSupportedConversionTypesRequest("conversions\\one-page.docx",Common_Utilities.myStorage,"")response=api.get_supported_conversion_types(request)# Print out supported conversion typesprint("Supported conversion types:")forfileformatinresponse:print('{0} to [{1}]'.format(fileformat.source_format,', '.join(fileformat.target_formats)))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception when calling get_supported_conversion_types: {0}".format(e.message))
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples
packageinfoimport("fmt""github.com/antihax/optional"conversion"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcGetSupportedConversions(){response,_,err:=config.Client.InfoApi.GetSupportedConversionTypes(config.Ctx,nil)iferr!=nil{fmt.Printf("GetSupportedConversions error: %v\n",err)return}fmt.Printf("response.length: %v\n",len(response))}
Get All Supported Formats For Provided Document Extension
GroupDocs.Conversion Cloud supports functinality to get a list of supported formats from provided document extension, You can use the below API.
Resource
The following GroupDocs.conversion Cloud REST API resource has been used in the Supported File Formats example.
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.
Get All Supported Formats For Provided Document Extension
usingSystem;usingGroupDocs.Conversion.Cloud.Sdk.Api;usingGroupDocs.Conversion.Cloud.Sdk.Client;usingGroupDocs.Conversion.Cloud.Sdk.Model.Requests;namespaceGroupDocs.Conversion.Cloud.Examples.CSharp{// Get All Supported Formats For Provided ExtensionclassGet_All_Possible_Conversions_For_Extension{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newInfoApi(configuration);try{// Get supported file formatsvarresponse=apiInstance.GetSupportedConversionTypes(newGetSupportedConversionTypesRequest(null,null,"xlsx"));foreach(varentryinresponse){foreach(varformatsinentry.TargetFormats){Console.WriteLine(string.Format("{0} TO {1}",entry.SourceFormat,string.Join(",",formats)));}}}catch(Exceptione){Console.WriteLine("Exception while calling InfoApi: "+e.Message);}}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$infoApi=CommonUtils::GetInfoApiInstance();$request=newGroupDocs\Conversion\Model\Requests\GetSupportedConversionTypesRequest(null,null,"xlsx");$response=$infoApi->getSupportedConversionTypes($request);echo'<b>Supported file formats<br /></b>';foreach($responseas$key=>$format){echo$format->getSourceFormat(),"<br />";}}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}
packageexamples.Supported_File_Formats;importcom.groupdocs.cloud.conversion.client.*;importcom.groupdocs.cloud.conversion.model.*;importcom.groupdocs.cloud.conversion.model.requests.*;importjava.util.List;importcom.groupdocs.cloud.conversion.api.*;importexamples.Utils;publicclassConversion_Java_Get_Supported_Formats{publicstaticvoidmain(String[]args){InfoApiapiInstance=newInfoApi(Utils.AppSID,Utils.AppKey);try{GetSupportedConversionTypesRequestrequest=newGetSupportedConversionTypesRequest();List<SupportedFormat>response=apiInstance.getSupportedConversionTypes(request);for(SupportedFormatentry:response){for(Stringformats:entry.getTargetFormats()){System.out.println(entry.getSourceFormat()+" TO "+formats);}}}catch(ApiExceptione){System.err.println("Exception while calling InfoApi:");e.printStackTrace();}}}
# Load the gemrequire'groupdocs_conversion_cloud'require'common_utilities/Utils.rb'classFile_Formatsdefself.Conversion_Ruby_Get_All_Supported_Formats_For_Extension()# Getting instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()$request=GroupDocsConversionCloud::GetSupportedConversionTypesRequest.new("",$myStorage,"xlsx")# Retrieve supported file-formats$response=api.get_supported_conversion_types($request)# Print out supported file-formatsputs("Supported file-formats:")$response.eachdo|format|puts("#{format.source_format} to [#{format.target_formats.join(', ')}]")endendend
# Import modulesimportgroupdocs_conversion_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassConversion_Python_Get_All_Supported_Formats_For_Extension:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()try:# Retrieve supported conversion typesrequest=groupdocs_conversion_cloud.GetSupportedConversionTypesRequest("",Common_Utilities.myStorage,"xlsx")response=api.get_supported_conversion_types(request)# Print out supported conversion typesprint("Supported conversion types:")forfileformatinresponse:print('{0} to [{1}]'.format(fileformat.source_format,', '.join(fileformat.target_formats)))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception when calling get_supported_conversion_types: {0}".format(e.message))
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples
packageinfoimport("fmt""github.com/antihax/optional"conversion"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcGetSupportedConversions(){opts:=&conversion.InfoApiGetSupportedConversionTypesOpts{Format:optional.NewString("docx"),}response,_,err:=config.Client.InfoApi.GetSupportedConversionTypes(config.Ctx,opts)iferr!=nil{fmt.Printf("GetSupportedConversions error: %v\n",err)return}fmt.Printf("response.length: %v\n",len(response))}
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.