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
- Store your API key in
DOCONDA_API_KEYand install the SDK (pip install docondaornpm install @doconda/sdk). - Upload a file with your design (a Word file, a presentation, an Excel file, a PDF or an image).
- Create the document with
quality: "standard"and say in the request that it should use that design.
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, andstyle_unsupported: what couldn’t be applied.- The
design.chosenevent says which file was used as the design.
Limits
- Copying the design of a file needs
standardorbest. Infastthe 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
Does it work for PowerPoint?
Does it work for PowerPoint?
Yes. A presentation passed in
sources is used as a template: the result starts from its slides.Can I also pass material for the content?
Can I also pass material for the content?
Yes. The design file is the one you name in the request; the rest of
sources is still material.What happens if I ask for something that can't be done?
What happens if I ask for something that can't be done?
It’s not silently ignored: it comes back in
style_unsupported (for example, “gradient background”) and the rest
is applied.