Convert to PDF/Image API
  1. PDF
Convert to PDF/Image API
  • Getting Started
  • PDF
    • Convert a web page URL to PDF
      POST
    • Convert HTML content to PDF
      POST
    • Convert a document to PDF
      POST
    • Compress a PDF file
      POST
    • Merge multiple PDF files into one
      POST
    • Split a PDF file
      POST
    • Convert PDF to images
      POST
    • Remove metadata from PDF
      POST
    • Convert PDF to DOCX
      POST
  • Image
    • Capture a web page as an image
      POST
    • Convert images to PDF
      POST
    • Compress image
      POST
  • Schemas
    • Schemas
      • ErrorResponse
      • PdfUrlRequest
      • PdfHtmlRequest
      • PdfDocRequest
      • PdfCompressRequest
      • PdfMergeRequest
      • PdfSplitRequest
      • ImageUrlRequest
      • PdfRemoveMetadataRequest
      • ImageToPdfRequest
      • PdfToDocRequest
      • PdfToImageRequest
      • ImageCompressRequest
  1. PDF

Convert PDF to DOCX

POST
/v1/pdf/to-doc
Converts a PDF file to DOCX (Microsoft Word) format using the pdf2docx Python library. This provides better formatting preservation compared to LibreOffice conversion.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Body Params multipart/form-dataRequired

Responses

🟢200OK
application/vnd.openxmlformats-officedocument.wordprocessingml.document
DOCX file
Body

🟠400Bad Request
🟠401Unauthorized
🟠429Too Many Requests
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.convert2pdfapi.com/v1/pdf/to-doc' \
--header 'x-api-key: <api-key>' \
--form 'pdfFile=@""' \
--form 'fileName="converted_document"'
Response Response Example
200 - Example 1
<?xml version="1.0" encoding="UTF-8"?>
<root>string</root>
Modified at 2025-10-24 10:11:35
Previous
Remove metadata from PDF
Next
Capture a web page as an image
Built with