# Settings

{% embed url="<https://youtu.be/kFb4hmu6ZIg?si=2gA8v4YU8CDxyQs5>" %}

You can edit your template's settings by clicking on the cog icon in the top right of the template builder page. This will open a pop-over menu with options for configuring page settings such as document naming, margins, page format, etc.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FlfoH41n5j65aGzQ7YZRi%2FScreenshot%202025-09-25%20at%2013.13.18.png?alt=media&#x26;token=35c0bd87-3e76-426b-8339-a0b70557d991" alt=""><figcaption><p>Open the settings menu</p></figcaption></figure>

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FYngYjoBWzlzPXrzoJuJD%2FScreenshot%202025-09-25%20at%2013.15.38.png?alt=media&#x26;token=cceb8c1d-ee55-481c-a494-4c2d80160e51" alt=""><figcaption></figcaption></figure>

## Document Naming

You can customize the name of your documents by entering a name pattern in the template settings. Add variables to the name pattern to make each document name unique. Variables can be used in your document name pattern the same way they are used within Text elements in templates.

### Tokens

```handlebars
{{[!-- Place this in the name field --]}}
Invoice {{[Invoice Number]}} 
```

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FjUz8GPvKHaAiNfBkwtzB%2FScreenshot%202025-09-25%20at%2016.16.39.png?alt=media&#x26;token=3d59520c-b4a5-42cd-a1d9-5b5dd283232f" alt=""><figcaption></figcaption></figure>

### Variables (deprecated)&#x20;

```handlebars
{{!-- Place this in the name field --}}
Invoice {{invoice_number}} 
```

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FKMLfI4BDhYuBL5R61kSA%2FScreenshot%202025-09-25%20at%2016.19.56.png?alt=media&#x26;token=8ade7ff9-b530-42dc-b7f0-4998277ac610" alt=""><figcaption></figcaption></figure>

## Sizing/Format

You can select the margin sizes, page orientation (portrait or landscape), and page formatting for your template. The default page size is "Letter" (8.5 x 11 inches), but you can select from 7 standard formats.

* Letter
* Legal
* Tabloid
* A3
* A4
* A5
* A6

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2F9rbkPrGz1ka9k7ZayXjH%2FScreenshot%202025-09-25%20at%2017.16.07.png?alt=media&#x26;token=6ef5f8d0-750a-4e58-a451-753fb736ad46" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FF6L54q7RVW1m9IvScHtg%2FScreenshot%202025-09-25%20at%2017.22.40.png?alt=media&#x26;token=f0e16003-406f-4aa9-932c-6d8388c3c7dd" alt=""><figcaption></figcaption></figure>

If those sizes don't meet your requirements, you can define your own custom size by selecting the "Custom" format.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fkc1p0agwDLFIa1ARjD9a%2FScreenshot%202025-09-25%20at%2017.32.34.png?alt=media&#x26;token=6750f8d0-11bc-46c9-a085-f7d89ce49758" alt=""><figcaption></figcaption></figure>

## Margins

Page margins are applied to each individual page in a document.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FszIJNeNXh1aQv9fT8042%2FScreenshot%202025-09-25%20at%2017.38.52.png?alt=media&#x26;token=8234e1d5-725a-423a-8dd7-f4044acdaf11" alt=""><figcaption></figcaption></figure>

## Render Engine Version

The render engine builds out your template for preview and storage.&#x20;

There are currently two render engine versions. By default, your template uses v2, and it is the engine we recommend using. However, if something in your template is not working as expected, you can try reverting to render engine v1 (we still recommend reporting the issue to documint support via the chat feature in the app or via [email](mailto:support@documint.me)).

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FE3AipKJh1suPDEWi8M1m%2FScreenshot%202025-09-25%20at%2017.53.54.png?alt=media&#x26;token=a011ce3d-0f67-42e9-a03c-6cd9270763c9" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.documint.me/templates/document-structure-and-layout/settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
