Skip to main content
To summarize a PDF into a Word document, upload the PDF and pass it 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 flags any figures or citations that don’t come from them.

Steps

  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.

What you get back

  • An editable Word file with the summary, and its PDF. Images go inside, where they fit.
  • Warnings in the report (documents.report(id)):
    • content.unsupported_fact: a figure, date or fact that isn’t in your request or your sources.
    • content.unsupported_citation · content.citation_to_review: a legal citation that doesn’t come from your sources.
    • source.selected: your sources were very long and the part about what you asked for was used.
    • source.instructions: a source tried to give orders; it was ignored.
  • status: ready, ready_with_warnings, needs_review or failed (not charged).

Limits

  • In sources: up to 5 documents (Word, PowerPoint, Excel, PDF, also .doc, .ppt and .xls, TXT or Markdown) and up to 10 images, together.
  • Each file up to 20 MB.
  • For only the summary’s PDF, use format: "pdf"; for a presentation, format: "pptx".

FAQ

Yes. sources also accepts { "url": "https://…" } or its bytes in base64 ({ "data", "filename" }). See ways to pass a file.
Use extract: it returns the PDF as Markdown.
Yes, by its id (doc_…).

Keep reading