Skip to main content
To apply your brand style, describe its font and colors in style (“Montserrat font, headings #1F3A5F, accent #E4572E”), or pass a file with your design in sources and ask for “our template’s design”. With a file, Doconda copies its fonts, colors, margins, header and footer, logo and cover page.

Steps

  1. Store your API key in DOCONDA_API_KEY and install the SDK (pip install doconda or npm install @doconda/sdk).
  2. Upload a file with your design (a Word file, a presentation, an Excel file, a PDF or an image).
  3. Create the document with quality: "standard" and say in the request that it should use that design.
Without a template, text is enough: style: "Montserrat font, headings #1F3A5F, accent #E4572E, footer: My Company Ltd.". This works at every level, fast included.

What you can ask for in style

  • Font: any Google Fonts family, plus Calibri, Cambria, Arial, Times New Roman and Courier New.
  • Colors of the title, the headings, the text or the accent, by name or in hex.
  • Alignment, size, line spacing, margins and orientation.
  • Cover page, table of contents, page numbers, header and footer.

What you get back

  • An editable file: the look lives in the document’s styles (Normal, Heading 1…), plus its PDF with the font embedded.
  • style_applied: how the style was understood, and style_unsupported: what couldn’t be applied.
  • The design.chosen event says which file was used as the design.

Limits

  • Copying the design of a file needs standard or best. In fast the document comes out with its own design and the report says so (design.not_copied).
  • The Word file uses the font by name: if whoever opens it doesn’t have it installed, Word uses a similar one. The PDF has it embedded.

FAQ

Yes. A presentation passed in sources is used as a template: the result starts from its slides.
Yes. The design file is the one you name in the request; the rest of sources is still material.
It’s not silently ignored: it comes back in style_unsupported (for example, “gradient background”) and the rest is applied.

Keep reading