AnyConvert
← All docs

PDF to Word

Send a PDF, get back an editable .docx: text pages are converted directly, scanned-style pages are routed through OCR.

See the PDF to Word tool page, or the docs index for authentication, the shared request/webhook contract, and the generic error table.

Request

POST /webhooks/trigger, same endpoint and fields as every tool, with tool="pdf-to-word" set explicitly (it's not the default).

curl
curl -X POST https://api.anyconvert.app/webhooks/trigger \
  -H "x-api-key: your_api_key_here" \
  -F "file=@contract.pdf" \
  -F "fileId=document-001" \
  -F "referenceId=reference-001" \
  -F "tool=pdf-to-word"

Options

An optional options multipart field carrying a JSON object, validated synchronously before a credit is charged; a bad value is rejected with 400, not charged and not queued.

pagesstring, optionalDefault "all", or a 1-based list like "1-5,8". A page outside the document is invalid_options.
ocrstring, optional"auto" (default, OCRs only scanned-style pages) or "never" or "always".
onUnconvertiblePagesstring, optional"fail" (default) or "omit": remove pages with no editable text instead of failing the whole job, listing them in warnings.
passwordstring, optionalTried only if the file can be opened with an empty password.

Response

The webhook delivers a .docx, not a PDF.

Pricing

Billed per page, not per document: 1 credit for every 20 pages, rounded up (a 45-page PDF costs 3 credits).

Failure reasons

Delivered via the webhook as outcome=failure with a reason below; see the docs index for the full delivery shape.

invalid_optionsA bad/unknown option or a page out of range.
encrypted_fileThe PDF is password protected and the given password (if any) didn't open it.
no_extractable_textNo page in the document has any editable text after routing (or onUnconvertiblePages: "fail" hit one that didn't).
invalid_fileThe file could not be read, or was not the format this tool expects.
render_failedSomething failed during conversion that wasn’t a problem with the input itself.
timeoutThe job did not finish within its time budget.
internal_errorAn unexpected error on our side.
AnyConvert
A simple conversion API for teams that need documents turned into the right format, automatically.
Tools
PDF to WordMerge PDFJPG to PDFSign PDFEdit PDFCompress PDFExtract Text with CoordinatesView all tools →
Product
DocsPricing
Legal
Terms of ServicePrivacy PolicyRefund Policy
Support
support@anyconvert.app
© 2026 AnyConvert. All rights reserved.