Skip to main content
To generate a report with a cover page and table of contents, ask for “a cover page, table of contents and page numbers” in style (or in the same prompt sentence) with format: "docx". Doconda adds them to the Word file and its PDF; the cover page and table of contents are part of the basic style, so they also work with quality: "fast".

Steps

  1. Store your API key in DOCONDA_API_KEY and install the SDK (pip install doconda or npm install @doconda/sdk).
  2. Pass your content in Markdown (or a sentence in prompt) and the style.
  3. Download the Word file and check in style_applied that it was understood.

What you get back

  • An editable Word file with a cover page, table of contents and page numbers, and its PDF.
  • style_applied: how the style was understood (including cover_page, table_of_contents, page_numbers, header and footer).
  • style_unsupported: whatever you asked for that couldn’t be applied. The rest is applied anyway.
  • The style lives in the Word styles (Normal, Heading 1…), so whatever you add later follows the same design.

Limits

  • With quality: "fast" you get the basic style: font, size, colors, alignment, margins, cover page, table of contents, header and footer. Charts or a design copied from your template need standard or best.
  • The header and footer are text (“footer: Confidential”).

FAQ

Yes: use prompt instead of content (“Report on the housing law with a cover page and table of contents”). The style in the sentence is applied too.
Yes, in standard and best. See quality levels.
Yes: “landscape”, “2 cm margins”. See Style.

Keep reading