pdf_to_word
Convert PDF files into editable Word documents so you can update and reuse content; run OCR first on scanned PDFs.
Instructions
Convert a PDF into an editable Word document. PDFs exported from Word, Google Docs or InDesign come through well. A scanned PDF is a picture of a page, so run ocr_pdf on it first. The input is uploaded to the Papyrio API, processed in memory and not stored. The result is written to output_path, replacing any file already there, and the call returns that path and the size in bytes. Inputs are limited to 50 MB, and each call counts as one operation against the daily quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF. | |
| output_path | No | Absolute path to write the result to. Defaults to the input file with a "-papyrio.docx" suffix. |