Skip to main content
Describe your brand’s font and colors in style, or pass a file with your design in sources and ask for “our template’s design” in the prompt. Text works at every quality level; copying a file’s design needs standard or best, and copies its fonts, colors, margins, header and footer, logo and cover.

Which one to use

Use text when your brand is a font and a few colors. Use a file when it has a logo, a cover or a header and footer that must match exactly.

Copy the design of a file

The script prints the status and the font read back from the file, for example ready Montserrat. Behavior to be aware of:
  • With quality: "fast" the document ends in failed with design_needs_quality and isn’t charged.
  • With quality: "auto" (the default), copying a design picks at least standard, and best for any file that isn’t a PowerPoint template for a presentation.
  • The design.chosen event says which file was used as the design. The other files in sources stay material for the content.

Describe the style in text

Without a template, pass style: "Montserrat font, headings #1F3A5F, accent #E4572E, footer: My Company Ltd.". You can ask for:
  • 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: the style read back from the delivered file (font, size, colors, alignment, margins…).
  • The Word file uses the font by name: if the reader doesn’t have it installed, Word substitutes a similar one. The PDF looks the same everywhere.

FAQ

Yes. A presentation 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 (up to 5 documents) is material.
It is replaced by the closest one, and style_applied shows the font the file ends up with.