3. Convert to Word Processing Document Formats
Leave feedback
On this page
GroupDocs.Conversion Cloud REST API allows us to convert the supported document formats to Word Processing Document Formats and returns the output document storage URL and also support to get the result as a stream.
Convert to Words Formats
You can convert the supported document formats to Word Processing Document Formats and get the output as a storage URL
Resource
HTTP POST ~/conversion
Swagger UI lets you call this REST API directly from the browser.
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 Word Processing Document Formats with Stream Output
You can convert the supported document formats to Word Processing Document Formats and get the output as stream.
Resource
HTTP POST ~/conversion
Swagger UI lets you call this REST API directly from the browser.
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 Word Processing Document Formats with Stream Output
Convert to WordProcessing with Advanced Options
This example demonstrates how to convert pdf documents into word processing documents with advanced conversion options.
There are steps that usage of GroupDocs.Conversion Cloud consists of:
Step 3 is not needed if the “OutputPath” option is not provided: the convert API method will return the converted document in the response body.
Resource
HTTP POST ~/conversion
Swagger UI lets you call this REST API directly from the browser.
cURL example
# First get JSON Web Token# Please get your Client Id and Client Secret from https://dashboard.groupdocs.cloud/applications. Kindly place Client Id in "client_id" and Client Secret in "client_secret" argument.curl -v "https://api.groupdocs.cloud/connect/token"\
-X POST \
-d "grant_type#client_credentials&client_id#xxxx&client_secret#xxxx"\
-H "Content-Type: application/x-www-form-urlencoded"\
-H "Accept: application/json"# cURL example to convert documentcurl -v "https://api.groupdocs.cloud/v2.0/conversion/conversion"\
-X POST \
-H "Content-Type: application/json"\
-H "Accept: application/json"\
-H "Authorization: Bearer <jwt token>"-d "{
'FilePath': 'Pdf/sample.pdf',
'Format': 'docx',
'ConvertOptions': {
'FromPage': 1,
'PagesCount': 2
},
'OutputPath': 'Output'
}"
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.
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.