Service agreement
Client fields, a project date and the responsible engineer picked from a saved list.
{{client_name}}
{{client_address}}
{{project_date}}
{{engineer.name}}
A DocGen template is an ordinary Word (.docx) file. Wherever a value changes from one document to the next, you type a placeholder in double curly braces. DocGen finds the placeholders, builds a form from them and fills them in every time you generate a document.
Open a contract, an offer or a report you write again and again. Keep its layout as it is: fonts, tables, headers, footers and logos stay exactly as you designed them. Only the parts that change for each client or project become placeholders.
Replace each changing value with a name in double curly braces, such as
{{client_name}}. The same placeholder can appear several
times; every copy gets the same value.
| Type this in Word | DocGen fills in |
|---|---|
{{client_name}} |
The value of the field client_name. |
{{engineer.name}} |
A property of a saved record. Pick an engineer, a client or a product from a collection, and all its properties fill in at once. |
{{logo}} |
An image field: the picture is inserted at this spot. |
{{#is_company}} …
{{/is_company}}
|
The text in between appears only when is_company is Yes. |
{{^is_company}} …
{{/is_company}}
|
The text in between appears only when is_company is No or empty. |
{{engineer.name}}. Names can be up to 120
characters long.
{{#company_vat}}VAT number:
{{company_vat}}{{/company_vat}}.
When you upload the template, DocGen lists every placeholder it found and proposes a field for each one, guessing the type from the name:
Change any type you need: paragraph, number, date, Yes/No, dropdown, image or collection. Fields can be required, have a default value, or appear in the form only when another field has a given value.
Each date field has its own format in the document:
| Format | In the document |
|---|---|
| DD.MM.YYYY (default for new fields) | 09.03.2026 |
| DD/MM/YYYY | 09/03/2026 |
| MM/DD/YYYY | 03/09/2026 |
| YYYY-MM-DD | 2026-03-09 |
An image placeholder is replaced by a picture: a logo, a photo or a scanned signature. Upload PNG or JPEG files of up to 5 MB and choose the width for each field: small (4 cm), medium (8 cm) or large (15 cm). The height follows the picture's proportions. Pictures that are already part of the template stay as they are.
Word files keep your fonts as they are. For PDFs, DocGen uses fonts with the same character widths as the most common Word fonts, so lines and pages break exactly where they break in Word:
| Font in your template | Font in the PDF |
|---|---|
| Calibri | Carlito (same widths) |
| Cambria | Caladea (same widths) |
| Arial, Helvetica | Liberation Sans (same widths) |
| Times New Roman | Liberation Serif (same widths) |
| Courier New | Liberation Mono (same widths) |
Other fonts, including Aptos (the newer Word default) and brand fonts, are replaced by DejaVu in PDFs, which is wider and can move line and page breaks. For PDFs that match Word, write the template in one of the fonts above.
Download one, open it in Word and see how the placeholders are written.
Client fields, a project date and the responsible engineer picked from a saved list.
{{client_name}}
{{client_address}}
{{project_date}}
{{engineer.name}}
Adds a section shown only for companies and the engineer's signature as an image.
{{#is_company}}
{{company_vat}}
{{engineer.authorizationNumber}}
{{engineer.signature}}
Free plan with 5 documents a day. No card needed.
Start free