Convert Documents with Text
Purpose
To convert a document's existing file format (say docx) to any other file format (say html or txt) with text parameter.
Support file formats -> docx, odt, rtf, txt, html, pdf
HTTP Request URL
https://{zohoapis_domain}/writer/api/v1/documents/convert
Body Parameters
Parameter | Data Type | Description |
Mandatory Parameters | ||
format | String | Specify the format in which the converted document needs to be downloaded. Supported file formats: docx, odt, rtf, txt, html and pdf |
text | String | Provide the required text that needs to be converted. |
filename | String | Specify a name to the converted document. |
Note: PDF to Docx conversion is not supported in Writer yet.
Sample Request
Copiedcurl --location --request POST "https://www.zohoapis.com/writer/api/v1/documents/convert" \
--header "Authorization: Zoho-oauthtoken xxx.yyy.zzz" \
--form "text=Sample content for conversion" \
--form "format=docx" \
--form "filename=Sample File"
Sample Response
Converted document will be downloaded.