Convert PDF to Word
Convert → Convert PDF to Word
The Convert PDF to Word API converts a PDF into a Word document. You send the PDF as Base64 (docContent), docName, qualityType (Draft/Quality), language (e.g. English), mergeAllSheets, outputFormat, ocrWhenNeeded, and IsAsync. The API returns the Word file (or 202 + Location for async). Use the tester below to try it; more details are in the sections that follow.
Try the Convert PDF to Word API
:::note Quick reference
Endpoint: POST /api/v2/ConvertPdfToWord · Required: api-key, docContent, docName, qualityType, language, mergeAllSheets, outputFormat, ocrWhenNeeded, IsAsync
:::
:::info Try it live Use the form below to send your API key and PDF (Base64). Set quality, language, OCR, and formatting options; the response is the Word document (or polling URL when async). No code required—fill the fields and click Send request. :::
Overview, parameters, and use cases
- Overview
- Parameters
- Use cases
What is Convert PDF to Word?
This endpoint converts a PDF into a Microsoft Word document. You provide the PDF (Base64), docName, qualityType (Draft for speed or Quality for accuracy), language (for OCR), mergeAllSheets, outputFormat (preserve formatting), ocrWhenNeeded (for scanned PDFs), and IsAsync. The API returns the Word file or a Location URL for async.
Key features
- Quality – Draft (faster) or Quality (better accuracy).
- OCR – ocrWhenNeeded and language for scanned PDFs.
- Formatting – outputFormat preserves layout when possible.
- Async – IsAsync returns 202 with Location URL for polling.
:::tip Best for Use when you need to edit PDF content in Word. For PDF to Excel use Convert PDF to Excel; for PDF to PowerPoint use Convert PDF to PowerPoint. :::
API parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api-key | string | Yes | Your PDF4me API key, Base64 encoded. Get it from the dashboard. |
| docContent | base64 | Yes | PDF file content (Base64). |
| docName | string | Yes | Name of the source PDF (e.g. test.pdf). |
| qualityType | string | Yes | Draft or Quality. |
| language | string | Yes | OCR language (e.g. English). |
| mergeAllSheets | boolean | Yes | Combine pages into single document flow. |
| outputFormat | boolean | Yes | Preserve original formatting when possible. |
| ocrWhenNeeded | boolean | Yes | Use OCR for scanned PDFs. |
| IsAsync | boolean | Yes | Enable asynchronous processing. |
When to use Convert PDF to Word
- Editing – Edit PDF content in Word and re-export.
- Scanned PDFs – Use OCR to convert scanned documents to editable Word.
- Pipelines – Convert PDF to Word for further processing or templates.
:::info Need the full API? For request/response schemas and code samples, see Convert PDF to Word in the PDF4me API docs. :::
Prerequisites
Before using this endpoint, make sure you have:
- A valid PDF4me API key (Get your API Key)
- A PDF document in Base64 format
Response Format
The API returns a Word document:
- Status 200: PDF to Word conversion completed immediately - binary Word document content in response body
- Status 202: Request accepted and processing asynchronously - use the Location header URL to poll for results
For asynchronous requests, poll the Location URL until status 200 is returned with the Word document.