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.
POST /webhooks/trigger, same endpoint and fields as every tool, with tool="pdf-to-word" set explicitly (it's not the default).
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"
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.
| pages | string, optional | Default "all", or a 1-based list like "1-5,8". A page outside the document is invalid_options. |
| ocr | string, optional | "auto" (default, OCRs only scanned-style pages) or "never" or "always". |
| onUnconvertiblePages | string, optional | "fail" (default) or "omit": remove pages with no editable text instead of failing the whole job, listing them in warnings. |
| password | string, optional | Tried only if the file can be opened with an empty password. |
The webhook delivers a .docx, not a PDF.
Billed per page, not per document: 1 credit for every 20 pages, rounded up (a 45-page PDF costs 3 credits).
Delivered via the webhook as outcome=failure with a reason below; see the docs index for the full delivery shape.
| invalid_options | A bad/unknown option or a page out of range. |
| encrypted_file | The PDF is password protected and the given password (if any) didn't open it. |
| no_extractable_text | No page in the document has any editable text after routing (or onUnconvertiblePages: "fail" hit one that didn't). |
| invalid_file | The file could not be read, or was not the format this tool expects. |
| render_failed | Something failed during conversion that wasn’t a problem with the input itself. |
| timeout | The job did not finish within its time budget. |
| internal_error | An unexpected error on our side. |