A converted invoice can look right in Word until you try to add a line item. What looked like a table turns out to be a set of text boxes: you can change a price, but you can’t insert a row.
A PDF tells a viewer where to draw text on a page. To make that text useful in Microsoft Word, a converter has to infer which lines belong to a paragraph and which values belong in a table. How well it does that matters more to someone revising an invoice than how closely the first page resembles the original.
We compare what 8 PDF to Word APIs do with paragraphs, tables, and scanned pages, then look at where each one runs and how your application gets the DOCX back.
5 criteria for evaluating a PDF to Word API
Start with what your users need to change in Word. Ask for a sample DOCX, then check how the service would handle the same file in your application.
Does the output use reflowable paragraphs or absolute text boxes?
Try adding a sentence near the top of a converted page. If the converter rebuilt the paragraphs, the text below moves with your edit.
If it left the lines in fixed text boxes, you may have to move the boxes yourself. In Word’s Outline view, compare the body text with the original page: text inside a text box won’t appear in the outline.

Two versions of the same PDF page: fixed text boxes in one DOCX, flowing paragraphs and a native Word table in the other.
Does the API rebuild real Word tables?
A grid of text boxes can look like a table in Word, but it doesn’t give your application rows and cells to read.
A native Word table does: its rows and cells are part of the OOXML (ECMA-376) structure. That matters if a document-assembly tool needs the quantity and price from each invoice line.
How does the API handle scanned or image-only PDFs?
If a page is just an image, there’s no text to turn into Word paragraphs until optical character recognition (OCR) identifies it. Some APIs do that during conversion.
Others need a separate OCR step, which your application has to run before requesting the DOCX.
What is the execution model, synchronous or asynchronous?
With Foxit and Adobe, your application submits the conversion, gets a task or job ID, and polls for the result.
It doesn’t need to keep the original request open while the file converts. CloudConvert uses the same async job flow by default and also offers an optional synchronous endpoint. Nutrient’s /build endpoint, Aspose.Words Cloud, ConvertAPI, and pdfRest return the result in the same call by default, though ConvertAPI also supports optional async jobs and pdfRest supports optional Response-Type: requestId polling of /request-status.
Apryse runs as an in-process library call. For a large file, a synchronous request has to stay open until conversion finishes. Check whether that fits your application’s request timeout.

Async APIs return a task or job ID to poll, synchronous APIs hold the connection until the DOCX returns, and an embedded SDK converts inside your own process.
Where does the conversion run, and where does your data go?
First check whether the documents can leave your network and, if so, which regions are allowed to process them. A hosted API runs the conversion for you.
A container or embedded SDK lets you run it on your own infrastructure, but you’re responsible for installation, licensing, and updates. If files must stay offline, check whether any optional feature calls an external service.
8 PDF to Word APIs, evaluated
The entries below distinguish what each API lets you configure from what a converted document actually contains. For our API, you can also inspect the sample invoice in the walkthrough.
1. Foxit PDF Services API

Our PDF Services API on the developer portal.
Deployment and architecture
Our PDF Services API runs in the cloud. Use the published API reference for the upload, conversion, task status, and download endpoints.
Upload the PDF to get a documentId. The conversion request returns HTTP 202 and a taskId. Poll the task while its status is PENDING or IN_PROGRESS. If it reaches COMPLETED, download the DOCX; if it returns FAILED, there’s no converted file to retrieve.
Your backend authenticates every call with the client ID and client secret from the console. The free Developer plan includes 500 credits a year with no credit card required. For on-premises deployment, the separately licensed Foxit PDF Conversion SDK is a distinct product with its own trial, outside the free Developer plan.
Text flow and tables
On our sample invoice, the pdf-to-word endpoint returned the header as editable paragraphs and the line items as 1 Word table, with no text boxes or frames.
The endpoint doesn’t offer a layout setting, so check a file from your own workflow before relying on the same result.
OCR handling
For an image-only PDF, run pdf-ocr before pdf-to-word. When we skipped OCR on the scanned invoice, pdf-to-word returned the page as a picture with no selectable text.
The pdf-ocr endpoint at POST /pdf-services/api/documents/analyze/pdf-ocr accepts the uploaded documentId, returns a taskId, and on completion yields a resultDocumentId that you pass to pdf-to-word.
On our scanned sample invoice, the chain returned the recognized text over the page image and the line items as a real Word table. The walkthrough later in this article runs both paths.
Best fit
Our API suits SaaS teams that convert varying numbers of text-based PDFs and don’t want to run their own conversion servers.
For teams evaluating security requirements, we offer SOC 2 Type II coverage with HIPAA BAAs and GDPR support.
2. Adobe PDF Services API

Adobe’s PDF Services API page, which groups creation, conversion, OCR, and other PDF operations under one API.
Deployment and architecture
Adobe hosts the conversion service. Your application submits a job, polls for completion, then retrieves the DOCX.
Data residency is US by default with a European region available. For pricing, see Adobe’s pricing page.
Text flow and tables
Adobe’s export guide doesn’t specify whether it returns flowing paragraphs or native Word tables. If either is essential, ask for a converted sample.
OCR handling
Adobe exposes an ocrLang option on its export PDF endpoint, allowing the caller to specify the OCR language for scanned inputs as part of the conversion call.
Best fit
Consider Adobe if you already use its document services and can process files in its US or European region.
Adobe PDF Services is covered by SOC 2 Type II and ISO 27001, and PHI is not supported under HIPAA on this platform.
3. Apryse Server SDK

The Apryse Server SDK page. The SDK runs on servers you operate, on-premises or in a cloud you control.
Deployment and architecture
Apryse’s self-hosted SDK runs inside your application on Windows, Linux, or macOS, so conversion doesn’t require a REST call.
It integrates with C, C++, Java, Python, Node.js, .NET, and other bindings. PDF to Word conversion requires the separately downloaded Structured Output add-on. There is no cloud-hosted endpoint.
For pricing, see Apryse’s pricing page. Apryse holds ISO 27001 and SOC 2 Type II at company level, and the Server SDK runs on your own infrastructure.
Text flow and tables
Apryse doesn’t publish its text flow model for PDF to Word output.
OCR handling
The Structured Output add-on includes an optional OCR engine for scanned inputs.
Best fit
Apryse is a fit when the file must stay on your server and you want to call the converter directly from your application.
Your team installs the Structured Output add-on and manages the license.
If you want the same conversion engine without running it yourself, CloudConvert’s PDF to DOCX conversion runs on Apryse’s pdftron-pdf2word engine.
4. Nutrient DWS Processor API

Nutrient’s Document Web Services (DWS) API page, the hosted entry point for one API that extracts, generates, converts, and reviews documents.
Deployment and architecture
Nutrient DWS is a hosted REST API. Its /build endpoint returns the converted document synchronously in the same response body.
For teams who need self-hosting, Nutrient offers the separate Document Engine product. Nutrient DWS is covered by SOC 2 Type II and GDPR.
Text flow and tables
Nutrient doesn’t publish its text flow model for PDF to Office output.
OCR handling
Nutrient requires an OCR step before conversion for image-only PDFs. That’s the same sequence as our pdf-ocr and pdf-to-word calls: recognize the text, then convert it.
Best fit
Choose the hosted Processor API if your application needs the DOCX in the same HTTP response.
If files later need to stay inside your network, evaluate Document Engine separately.
5. Aspose.Words Cloud

The Aspose.Words Cloud product page, which pairs the REST API with Cloud SDKs that wrap the raw REST calls.
Deployment and architecture
Aspose.Words Cloud is a hosted REST API with a self-hosted Docker container option. The API returns results synchronously.
Aspose covers GDPR and explicitly does not support HIPAA for protected health information. For pricing, see Aspose’s pricing page.
Text flow and tables
Aspose.Words Cloud’s PDF to Word output supports bordered and non-bordered tables, though not nested tables. Aspose doesn’t publish its text flow model.
OCR handling
Aspose.Words Cloud doesn’t publish how its PDF to Word conversion treats scanned pages, so test a scanned sample before you route image-only PDFs to it.
Best fit
Aspose is worth a look if you need bordered or borderless tables and want to run the converter in Docker.
Nested tables are a limitation, and the hosted service isn’t an option for protected health information.
6. ConvertAPI

ConvertAPI’s PDF to DOCX API page, with a ready-to-run cURL call and a link to the endpoint’s OpenAPI schema.
Deployment and architecture
ConvertAPI is a hosted cloud REST API. It supports both synchronous conversion and optional async jobs.
For pricing, see ConvertAPI’s pricing page. ConvertAPI holds ISO 27001, SOC 2 Type II, HIPAA with a BAA, and GDPR coverage.
Text flow and tables
ConvertAPI exposes a Layout parameter with 4 options, flowing (default), continuous, exact, and nocolumns.
The flowing layout produces reflowable paragraphs, while exact preserves the original fixed positioning at the cost of editability.
It is the only API in this roundup that documents a multi-value layout parameter. ConvertAPI doesn’t publish table output behavior separately.
OCR handling
ConvertAPI exposes an OcrMode parameter with values auto (default), force, and never, giving you direct control over whether OCR runs during conversion.
Best fit
ConvertAPI lets you set both Layout and OcrMode in the same request.
That’s useful for a mixed archive: a contract someone will revise may need a different layout from a page they only need to reproduce. A HIPAA BAA is available.
7. CloudConvert API

CloudConvert’s PDF to Word converter page. The same PDF to DOCX conversion is available through its API.
Deployment and architecture
CloudConvert is a hosted cloud REST API. Conversion tasks follow an async job flow by default, with an optional synchronous endpoint.
CloudConvert offers no self-hosted deployment option. For pricing, see CloudConvert’s pricing page. CloudConvert holds ISO 27001 and GDPR coverage.
Text flow and tables
CloudConvert’s PDF to DOCX conversion runs on Apryse’s pdftron-pdf2word engine, through its partnership with Apryse.
CloudConvert exposes a prioritize_visual_appearance setting that defaults to off, favoring text that can reflow rather than an exact copy of the page.
Switching prioritize_visual_appearance on makes the converter prioritize layout fidelity over editability. CloudConvert doesn’t publish table output behavior.
OCR handling
CloudConvert’s images_ocr parameter defaults to true, so OCR runs automatically on image content during conversion and you don’t need to manage a separate OCR step for mixed documents.
Best fit
CloudConvert gives you Apryse’s conversion engine and automatic OCR without installing an SDK.
It’s a hosted service, so check that its ISO 27001 and GDPR coverage meets your requirements before sending files.
8. pdfRest by Datalogics

The pdfRest home page, developed by Datalogics and built on the Adobe PDF Library.
Deployment and architecture
pdfRest offers a hosted cloud API, an EU endpoint that keeps processing in European data centers, and self-hosted AWS and container options.
The /word endpoint returns results synchronously by default, and optional Response-Type: requestId polling of /request-status is also available. For pricing, see pdfRest’s pricing page. pdfRest is covered by SOC 2 Type II, HIPAA, and GDPR.
Text flow and tables
pdfRest doesn’t publish its text flow model for /word output.
OCR handling
For scanned PDFs, pdfRest provides a separate pdf-with-ocr-text tool that places recognized text behind the page images, and its output file (referenced by its outputId) feeds the /word endpoint.
Best fit
Consider pdfRest if residency requirements might lead you from a hosted EU endpoint to a deployment you run in AWS or a container. You can use the synchronous response or poll for longer jobs.
If you handle protected health information, confirm the terms that apply to your deployment.
Comparison matrix
Checked in November 2026. “Not published” means the API documentation we reviewed didn’t specify the behavior, not that the feature is unavailable.
A closer look at the Foxit PDF Services API
What happens to the line items when the same invoice starts as a PDF with text and as a scan? We’ll convert both with our API and open the results in Word. The first example has 4 steps: upload the PDF, start the conversion, poll for completion, and download the DOCX. The scan adds an OCR step.
Prerequisites
To follow along, you need the following:
- Foxit developer account: create a free account, no credit card required. The free Developer plan includes 500 credits a year.
- cURL: download cURL if your system does not already include it. It sends every API call in the script.
- jq: install jq to pull the
documentId,taskId, andresultDocumentIdvalues out of each JSON response. - A Bash shell: run the scripts with Bash on macOS or Linux. On Windows, use WSL.
- A code editor: VS Code or any editor you prefer, to save the script.
Set up a working folder and download the sample invoice as invoice.pdf, the file name the script uploads:
mkdir pdf-to-word && cd pdf-to-word
curl -L -o invoice.pdf https://github.com/lucienchemaly/foxit-demo-templates/raw/main/invoice_table_test.pdf Get your credentials
Sign up at the Foxit developer sign-up page.

Our developer account sign-up form.
After you sign in, the console opens on the Dashboard, which shows your plan, its included credits, and the application that holds your credentials.

Our developer Dashboard shows the active plan, its credit allowance, and registered applications.
At the top of the Dashboard, look for your Client ID and Client Secret in the “Make your first call” panel.

The “Make your first call” panel. Copy the Client ID, then reveal and copy the Client Secret. The panel’s own cURL sample calls Document Generation, while convert.sh sends the same pair to PDF Services.
Copy both values and export them in the terminal you will run the script from. The script below sends them as client_id and client_secret headers.
export FOXIT_CLIENT_ID="your-client-id"
export FOXIT_CLIENT_SECRET="your-client-secret" The 4 steps from PDF to DOCX
The script makes these calls in order:
- Upload:
POST /pdf-services/api/documents/uploadwith amultipart/form-databody containing thefilefield. The response returns adocumentId. - Convert:
POST /pdf-services/api/documents/convert/pdf-to-wordwith a JSON body ofdocumentIdand an optionalpasswordfield. The endpoint accepts no table, ML, or OCR option. It responds with HTTP 202 and ataskId. - Poll:
GET /pdf-services/api/tasks/{taskId}returns a status ofPENDING,IN_PROGRESS,COMPLETED, orFAILED. Keep polling until the task reachesCOMPLETEDorFAILED. A completed task includes aresultDocumentId. - Download:
GET /pdf-services/api/documents/{resultDocumentId}/downloadreturns the.docxfile as a binary stream.
The convert call costs 1 credit. Upload, polling, and download calls are free.

The request sequence in convert.sh. Only the convert call uses a credit, and the script polls until the task is COMPLETED or FAILED.
Save the following script as convert.sh in your pdf-to-word folder:
#!/usr/bin/env bash
BASE="https://na1.fusion.foxit.com/pdf-services/api"
# 1. Upload the PDF and keep its documentId, or stop with the API's response
UPLOAD=$(curl -s -X POST "$BASE/documents/upload" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET" \
-F "[email protected]")
DOC_ID=$(echo "$UPLOAD" | jq -r '.documentId // empty')
[ -n "$DOC_ID" ] || { echo "upload failed: $UPLOAD"; exit 1; }
echo "documentId: $DOC_ID"
# 2. Start the PDF to Word conversion (1 credit) and keep its taskId
CONVERT=$(curl -s -X POST "$BASE/documents/convert/pdf-to-word" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d "{\"documentId\": \"$DOC_ID\"}")
TASK_ID=$(echo "$CONVERT" | jq -r '.taskId // empty')
[ -n "$TASK_ID" ] || { echo "convert failed: $CONVERT"; exit 1; }
echo "taskId: $TASK_ID"
# 3. Poll every 3 seconds while the task is PENDING or IN_PROGRESS
STATUS="PENDING"
while [ "$STATUS" = "PENDING" ] || [ "$STATUS" = "IN_PROGRESS" ]; do
sleep 3
TASK=$(curl -s "$BASE/tasks/$TASK_ID" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET")
STATUS=$(echo "$TASK" | jq -r '.status // empty')
echo "status: $STATUS"
done
[ "$STATUS" = "COMPLETED" ] || { echo "task did not complete: $TASK"; exit 1; }
RESULT_ID=$(echo "$TASK" | jq -r .resultDocumentId)
# 4. Download the DOCX
curl -s -f "$BASE/documents/$RESULT_ID/download" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET" \
--output converted.docx || { echo "download failed"; exit 1; }
echo "saved converted.docx"
In this code, you upload invoice.pdf, keep the raw response in UPLOAD, and read its documentId into DOC_ID with jq. The // empty filter tells jq to emit nothing for a missing field instead of printing null.
Without an ID, the script prints the response and stops. If invoice.pdf is missing locally, cURL cannot send the request; check the file path first. The convert call follows the same pattern. It sends DOC_ID to pdf-to-word and keeps the returned taskId in TASK_ID, or prints the response and stops.
The while loop polls the task endpoint every 3 seconds and prints each status for as long as the task is PENDING or IN_PROGRESS. A FAILED status or a response with no status ends the loop. The script has no time limit, though: if the service keeps reporting a pending task, it keeps polling.
Anything other than COMPLETED prints the full response and stops. On success, you read the resultDocumentId from the last poll response and download the converted file to converted.docx. The -f flag on the download makes cURL fail on an HTTP error instead of saving an error body under a .docx name.
Run this command from your terminal:
bash convert.sh The expected output should look like the following, with different IDs on your run:
documentId: 6afe459e2752dc0c4fd79c11
taskId: 6afe459f26e6344129664aca
status: COMPLETED
saved converted.docx Open converted.docx in Word to check the result. The header fields come through as ordinary paragraphs and the line items as 1 real Word table.

The converted sample invoice in Word. The line items select as 1 Word table with a move handle at its corner, and the header fields above it are ordinary paragraphs.
To check for text boxes yourself, switch Word to View > Outline. Text inside a text box does not appear in Outline view, so every line of the invoice showing up there means none of it sits in a text box.

The converted invoice in Outline view. Every line of the invoice and the line-item table appear as regular body content, with no text boxes or frames.
Now try the scanned version of the same invoice. Running convert.sh on the scan without OCR completed the task, but Word showed a single page image with no selectable text.

A direct pdf-to-word conversion of the scanned sample in Word. Clicking anywhere selects the whole page as 1 picture, and the status bar reports 0 words.
For scanned PDFs, add a pdf-ocr call between the upload and convert calls. POST to /pdf-services/api/documents/analyze/pdf-ocr with the uploaded documentId, poll the returned taskId to completion, then pass the OCR result’s resultDocumentId as the documentId in your pdf-to-word call. Each operation costs 1 credit.
Download the scanned sample invoice into the same folder as scan.pdf, so the digital invoice.pdf from the first run stays in place:
curl -L -o scan.pdf https://github.com/lucienchemaly/foxit-demo-templates/raw/main/invoice_table_scan.pdf Save the following script as convert_scan.sh in the same folder:
#!/usr/bin/env bash
BASE="https://na1.fusion.foxit.com/pdf-services/api"
# Poll a task every 3 seconds while it is PENDING or IN_PROGRESS.
# Prints the final task JSON on success, or the response and exits on anything else.
wait_for_task() {
local status="PENDING" task
while [ "$status" = "PENDING" ] || [ "$status" = "IN_PROGRESS" ]; do
sleep 3
task=$(curl -s "$BASE/tasks/$1" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET")
status=$(echo "$task" | jq -r '.status // empty')
echo "$2: $status" >&2
done
[ "$status" = "COMPLETED" ] || { echo "task did not complete: $task" >&2; exit 1; }
echo "$task"
}
# 1. Upload the scan and keep its documentId
UPLOAD=$(curl -s -X POST "$BASE/documents/upload" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET" \
-F "[email protected]")
DOC_ID=$(echo "$UPLOAD" | jq -r '.documentId // empty')
[ -n "$DOC_ID" ] || { echo "upload failed: $UPLOAD"; exit 1; }
echo "documentId: $DOC_ID"
# 2. Run OCR on the scan (1 credit) and continue with the OCR result
OCR=$(curl -s -X POST "$BASE/documents/analyze/pdf-ocr" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d "{\"documentId\": \"$DOC_ID\", \"config\": {\"languages\": [\"en-US\"], \"makeEditable\": true}}")
OCR_TASK=$(echo "$OCR" | jq -r '.taskId // empty')
[ -n "$OCR_TASK" ] || { echo "ocr failed: $OCR"; exit 1; }
OCR_RESULT=$(wait_for_task "$OCR_TASK" "ocr status") || exit 1
DOC_ID=$(echo "$OCR_RESULT" | jq -r .resultDocumentId)
echo "OCR resultDocumentId: $DOC_ID"
# 3. Convert the OCR output to Word (1 credit)
CONVERT=$(curl -s -X POST "$BASE/documents/convert/pdf-to-word" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d "{\"documentId\": \"$DOC_ID\"}")
TASK_ID=$(echo "$CONVERT" | jq -r '.taskId // empty')
[ -n "$TASK_ID" ] || { echo "convert failed: $CONVERT"; exit 1; }
echo "taskId: $TASK_ID"
TASK=$(wait_for_task "$TASK_ID" "status") || exit 1
RESULT_ID=$(echo "$TASK" | jq -r .resultDocumentId)
# 4. Download the DOCX under its own name
curl -s -f "$BASE/documents/$RESULT_ID/download" \
-H "client_id: $FOXIT_CLIENT_ID" \
-H "client_secret: $FOXIT_CLIENT_SECRET" \
--output converted_scan.docx || { echo "download failed"; exit 1; }
echo "saved converted_scan.docx"
In this script, the polling loop from convert.sh moves into a wait_for_task function, because the scan flow waits on 2 tasks. It keeps the same rules, polling only while a task is PENDING or IN_PROGRESS and stopping the script on any other result except COMPLETED. You upload scan.pdf, then send its documentId to pdf-ocr with an English language setting and makeEditable: true. Once the OCR task completes, you overwrite DOC_ID with the OCR result’s resultDocumentId, so the pdf-to-word call converts the OCR output instead of the raw scan. The result downloads to converted_scan.docx, which leaves the converted.docx from the first run untouched.
Run this command from your terminal:
bash convert_scan.sh The expected output should look like the following, with different IDs on your run:
documentId: 6afe4e5c26e63441296a9888
ocr status: IN_PROGRESS
ocr status: COMPLETED
OCR resultDocumentId: 6afe4e61dcfc0b524bc73e2a
taskId: 6afe4e672769695bcb6d1b03
status: COMPLETED
saved converted_scan.docx This time, converted_scan.docx holds the recognized text as editable paragraphs and the line items as a Word table, with the page image placed behind the text.

The pdf-ocr then pdf-to-word result in Word. The recognized header lines select as text, and the line items select as a Word table with its move handle.
If your documents can’t leave your own infrastructure, the separately licensed Foxit PDF Conversion SDK is the on-premises route. It exposes conversion through a PDF2Office class with a PDF2OfficeSettingData object (method names vary by language binding).
Picking the right API for your document pipeline
Where can the file be processed, and does it already contain text? The first question narrows the choice between a hosted API and software you run yourself. The second tells you whether OCR belongs in the workflow.

A hosted API processes the file outside your network. A self-hosted service or embedded SDK can keep it local, provided no online recognition feature sends it elsewhere.
Cloud REST for variable-volume SaaS workflows
If the files can leave your network and conversion volume varies, a hosted API lets the vendor run the service.
Your team can focus on the output: do paragraphs move when someone edits them, and can your application read the table cells? The Foxit PDF Services API, Adobe, Nutrient, ConvertAPI, CloudConvert, Aspose.Words Cloud, and pdfRest all follow this model.
Self-hosted or embedded conversion for air-gapped or zero-egress environments
When your security policy prohibits documents leaving your network, the conversion has to run inside it. Self-hosted options such as Aspose.Words Cloud’s Docker container, pdfRest’s container, or Nutrient’s Document Engine run the conversion as a service on your own hosts, while an embedded SDK goes further and converts in-process.
Apryse’s Server SDK runs in-process with no network egress. Check the features you enable as well as where you install the SDK. In our separately licensed Conversion SDK, enable_ml_recognition sends borderless tables to an online recognition service. Leave it off in an air-gapped deployment.
OCR followed by conversion for scanned pipelines
For image-only files, decide whether OCR should run as a separate job or within the conversion request.
With our API, run pdf-ocr before pdf-to-word. On our scanned invoice, the original page image remained behind the editable text.
Try scans typical of your archive, especially if their quality varies. ConvertAPI’s OcrMode: auto and CloudConvert’s images_ocr: true default run OCR inside the conversion call instead, so there is no separate task to poll.

Our scanned invoice took 2 paths: direct conversion returned a picture; running OCR first produced editable text. The OCR path adds 1 task and 1 credit before pdf-to-word.
Where the Foxit PDF Services API fits
Choose our cloud API if a hosted, asynchronous workflow fits your application. For regulated files, check our SOC 2 Type II coverage, HIPAA BAAs, and GDPR support against your requirements. For image-only files, add the pdf-ocr step. If documents must stay on your network, the separately licensed Conversion SDK is the on-premises option.
Before you choose, try the edit that matters on one of your own files: add a clause to a contract, insert a row in an invoice, or select text from a scan. Use Outline view to check whether the body text flows as paragraphs. With ours, that means pointing convert.sh at your own file in place of invoice.pdf.
Create a free Foxit developer account to try your own PDF. The Developer plan includes 500 credits a year and doesn’t require a credit card.
Frequently asked questions
The answers below cover common questions about PDF to Word APIs.
What is a PDF to Word API?
A PDF to Word API lets your application convert a PDF into a DOCX without someone opening and saving each file by hand. With a hosted service, your code submits the file over HTTP; with an embedded SDK, it calls a library on your own machine. How editable the result is depends on how the converter reconstructs the page.
How do PDF to Word APIs handle scanned or image-only PDFs?
An image-only scan needs OCR to turn the text in the picture into characters you can select in Word. Some APIs run OCR during conversion rather than as a separate job. CloudConvert’s images_ocr defaults to true, ConvertAPI has OcrMode: auto as the default, and Adobe accepts an ocrLang parameter on the export call. With the Foxit API, you run POST /pdf-services/api/documents/analyze/pdf-ocr (with config.languages and makeEditable: true in the body) first, then pass the OCR result’s resultDocumentId to the pdf-to-word endpoint. Each operation costs 1 credit.
What is the difference between a cloud REST API and an embedded SDK for PDF to Word conversion?
A hosted REST API processes files on the vendor’s servers. An embedded SDK runs in your own application, so you manage installation and updates. If files must stay offline, also check for features that call an external service. Our cloud PDF Services API and our separately licensed Conversion SDK have different integration paths and separate trials.
Do PDF to Word APIs preserve table formatting in the output DOCX?
Table output depends on whether a converter rebuilds a real Word table or positions text in a grid of absolute frames. Our cloud pdf-to-word endpoint takes no table option and returned 1 real Word table with editable paragraphs on the sample invoice in the walkthrough section above. On the scanned sample, the OCR-then-convert chain also returned the line items as a real Word table, with the page image kept behind the text. The separately licensed Foxit PDF Conversion SDK includes an optional enable_ml_recognition setting for borderless tables, but that setting routes through Foxit’s online recognition service, so it stays off in air-gapped deployments.
What compliance certifications should I look for in a PDF to Word API?
Check what the vendor’s SOC 2 Type II report or ISO 27001 certificate actually covers. HIPAA and GDPR are legal requirements, not product certifications. If a vendor will handle protected health information on your behalf, confirm whether you need a business associate agreement and whether it covers that service. Our cloud-hosted PDF APIs are covered by SOC 2 Type II audits, and we support HIPAA BAAs. If the files must remain on your servers, use the separate Conversion SDK with online recognition turned off.


