Convert PDF to Word (DOC , DOCX) Using REST API

With our latest addition to our conversion list, you can now convert your PDF documents to word documents using our REST API. This will allow you to Convert PDF to Word (DOC & DOCX), so you can have more control over the document content, you can edit, process, and re-format these documents easily after conversion. You can also make use of our REST API for other conversions after processing and editing your documents.

PDF to Word

PDF to Word conversion is not an easy job, and even though there are a number of tools that can do this conversion, you will often see them compromise on your document format or quality, Which is not ideal, especially when often, the main purpose of converting the document to word would is to preserve the formatting and make edits without having to start from scratch. This is why Doc Conversion API will always bring you the very best quality in your conversion.

Before                                                   After

pdf to word    PDF to Word

Our conversion API is seriously simple, secure, fast, and accurate, it works with on all computers, systems, and languages, as we welcome all platforms.

Convert PDF to Word using REST API (curl)

Doc Conversion API prides itself in being easy to use and integrate with all programming languages and frameworks; you can find a list of code examples here.

In order to convert from PDF to Word (Doc & Docx), all you need is a simple POST request, using the conversion URL along with your APP credentials (Application ID and Secret Key).

PDF to DOC

If you’re looking to convert PDF to DOC, you will need to use the following URL:

https://api.docconversionapi.com/convert?outputFormat=doc

And write the following curl request:

curl --request POST \
  --url 'https://api.docconversionapi.com/convert?outputFormat=doc' \
  --header 'X-ApplicationID: <Your_Application_ID>' \
  --header 'X-SecretKey: <Your_Application_SecretKey>' \
  --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  --form inputFile=undefined \
  --form optionsJSON=

Where:

X-ApplicationID Your application ID
X-SecretKey Your secret key
OutPutFormat DOC
InputFile The file you would like to convert
optionsJSON a JSON String containing any additional options relevant to the conversion type

 

 

PDF to DOCX

Similarly, If you’re looking to convert PDF to DOCX, you will need to use the following URL:

https://api.docconversionapi.com/convert?outputFormat=docx

And write the following curl request:

curl --request POST \
  --url 'https://api.docconversionapi.com/convert?outputFormat=docx' \
  --header 'X-ApplicationID: <Your_Application_ID>' \
  --header 'X-SecretKey: <Your_Application_SecretKey>' \
  --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  --form inputFile=undefined \
  --form optionsJSON=

Where:

X-ApplicationID Your application ID
X-SecretKey Your secret key
OutPutFormat DOCX
InputFile The PDF file you would like to convert
optionsJSON a JSON String containing any additional options relevant to the conversion type

 

* If you have any questions or need any further help, please contact us at [email protected]

Convert DOC to JPEG Using a REST API

Do you have a DOC file and would like to take snapshots of all the pages?, maybe use them as thumbnails? Suppose you have a Word document with 100’s of pages, it would be a tedious task to manually convert every page into an image. That’s why you need our DOC to JPEG converter API, as it will automatically convert every page of the DOC file as JPEG image without the need for any additional software.

Doc to jpeg

Doc Conversion API offers an easy to use, fast, secure, and reliable REST API that you can connect to, and convert any Word DOC to a JPEG image while maintaining formatting and quality. Our API is carefully designed with a focus on quality and reliability. It is simple to execute, however, it is also highly flexible and can be configured to carry out heavy and complex conversions with maximum accuracy.

Convert DOC to JPEG using the REST API (CURL)

Doc Conversion API is compatible with all programming languages and frameworks, you can find a list of code examples here.

You can simply convert from DOC to JPEG by making a POST request, using the below URL Along with your APP credentials (Application ID and Secret Key):

https://api.docconversionapi.com/convert?outputFormat=jpeg

To make the following curl request:

curl --request POST \
  --url 'https://api.docconversionapi.com/convert?outputFormat=jpeg' \
  --header 'X-ApplicationID: <Your_Application_ID>' \
  --header 'X-SecretKey: <Your_Application_SecretKey>' \
  --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  --form inputFile=undefined \
  --form 'optionsJSON={"pages" : "all"}'

X-ApplicationID is your Application ID

X-SecretKey      is your Secret Key

OutPutFormat is JPEG

InputFile         is the file you would like to convert

optionsJSON is a JSON String containing any additional options relevant to the conversion type.

Convert DOC to JPEG using the REST API (PHP)

Doc Conversion API is compatible with all main programming languages and frameworks, you can find a list of code examples here.

For this PHP example, we’re using a direct URL to our word document (the document we’re converting) for simplicity, you can also upload your local documents to the service.

We’re going to be using this example:

http://www.snee.com/xml/xslt/sample.doc

DOC to JPEG

We’re going to create a simple PHP page that reads the Doc file from a URL, and converts this file into a JPEG image that is displayed as a web page:

doc to jpeg

Download this page / View this page

 

This code will execute the conversion, and display the Word DOC content as a JPEG page.

doc to jpeg

 

 

If you have any questions or need any further help, please contact us at [email protected]