Skip to main content
Pass the PDF in sources with format: "docx" and what you want in prompt (“Summarize the main measures for a client”). Doconda reads your files before writing and, before delivering, corrects figures or facts that don’t come from them.

Summarize a PDF into Word

  1. Store your API key in DOCONDA_API_KEY and install the SDK: pip install doconda or npm install @doconda/sdk.
  2. Upload the PDF (and any images you want inside) with files.upload.
  3. Create the document with sources and download the Word file.
You should see ready and the page count (for example ready 2), and summary.docx on disk.

What you get back

  • An editable Word file with the summary, and its PDF. Images go inside, where they fit.
  • Checked before delivery: the agent corrects figures, dates and facts that don’t come from your request or your sources.
  • status: ready, or failed with error.code. A failed document isn’t charged.

What goes in sources

Each file can be up to 20 MB. Documents in sources only work with prompt; with content alone they’re rejected with 422 input_invalid. A summary from a prompt costs €0.15 at fast, €0.50 at standard and €1.50 at best. For only the PDF, use format: "pdf"; for a presentation, format: "pptx".

FAQ

Yes. sources also takes { "url": "https://…" } for a public file, or its bytes as { "data": "…", "filename": "law.pdf" }. See four ways to pass a file.
Convert it with to: "md": it returns the PDF as Markdown, with no AI, and the first 1,000 conversions each month are free.
Yes, by its ID (doc_…). Doconda uses its Word, PowerPoint or Excel file, or its PDF if that’s all it has.
For every create option, see Create.