1. Convert to Any Format
Introduction
GroupDocs.Conversion Cloud REST API allows to convert supported document formats to any Supported Document Formats and returns the output document storage URL and also support to get result as a stream.
Convert to Any Format
You can convert the supported document formats to Any Format Format and get Output as Storage URL.
Resource
The following GroupDocs.Conversion Cloud REST API resource has been used in the convert to Any Format format example.
cURL Example
curl -X POST "https://api.groupdocs.cloud/v2.0/conversion" -H "accept: application/json" -H "authorization: Bearer [Access Token]"
-H "Content-Type: application/json" -d "{ \"Storage\": \"MyStorage\", \"FilePath\": \"conversions/sample.docx\", \"Format\": \"txt\", \"LoadOptions\": {\"DocxLoadOptions\": {\"Password\": \"\", \"HideWordTrackedChanges\": \"true\", \"DefaultFont\": \"Arial\"}},\"ConvertOptions\": {\"TxtConvertOptions\": {\"FromPage\": \"1\", \"PagesCount\": \"2\", }}, \"OutputPath\": \"converted/topAny Format\"}"
{
"name": "sample.txt",
"size": 2141,
"url": "MyStorage:converted/topAny Format/sample.txt"
}
SDKs
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.
Convert to Any Format Example
Convert to Any Format with Stream Output
You can convert the supported document formats to Any Format Format and get Output as Stream.
Resource
The following GroupDocs.Conversion Cloud REST API resource has been used in the convert to Any Format format example.
cURL Example
curl -X POST "https://api.groupdocs.cloud/v2.0/conversion" -H "accept: application/json" -H "authorization: Bearer [Access Token]"
-H "Content-Type: application/json" -d "{ \"Storage\": \"MyStorage\", \"FilePath\": \"conversions/sample.docx\", \"Format\": \"txt\", \"LoadOptions\": {\"DocxLoadOptions\": {\"Password\": \"\", \"HideWordTrackedChanges\": \"true\", \"DefaultFont\": \"Arial\"}},\"ConvertOptions\": {\"TxtConvertOptions\": {\"FromPage\": \"1\", \"PagesCount\": \"2\", }}, \"OutputPath\": \""}"
Code : 200
{
Download file
}
content-type: application/octet-stream
SDKs
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.