7. Convert to Text Formats
Introduction
GroupDocs.Conversion Cloud REST API allows to convert the supported document formats) to Text Formats and returns the output document storage URL and also support to get result as a stream or Array of stream.
Convert to Text Formats
You can convert the supported document formats) to Text Formats and get output as Storage URL.
Resource
The following GroupDocs.Conversion Cloud REST API resource has been used in the convert to Text 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/toptext\"}"
{
"name": "sample.txt",
"size": 2141,
"url": "MyStorage:converted/toptext/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 Text Formats
Convert to Text Formats with Stream Output
You can convert the supported document formats) to Text Formats and get output as Stream.
Resource
The following GroupDocs.Conversion Cloud REST API resource has been used in the convert to Text 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.