# How to Configure Custom Page Sizes

Use custom page sizes when standard page layouts do not match your output.

This is useful for mailing labels, business cards, letterhead, and international paper formats.

### Set a custom page size

{% stepper %}
{% step %}

### Open page settings

Open the **Page Settings** tab in the Template Editor.
{% endstep %}

{% step %}

### Switch to a custom layout

Set **Page Layout** to **Custom**.
{% endstep %}

{% step %}

### Enter the page dimensions

Set **Page Width** and **Page Height**.

Choose the unit that matches your dimensions.
{% endstep %}

{% step %}

### Adjust margins

Set the top, bottom, left, and right margins.

Use smaller margins only when your printer supports them.
{% endstep %}

{% step %}

### Save and test

Save the template.

Generate a test document before rollout.
{% endstep %}
{% endstepper %}

### Common setups

#### A4 paper

Use these values for standard international A4 output:

1. Set **Page Layout** to **Custom**.
2. Set **Page Width** to `21`.
3. Set **Page Height** to `29.7`.
4. Set **Unit** to `centimeters`.
5. Save the template.

#### Mailing labels

Use these values for a three-column US letter label layout:

1. Set **Page Layout** to **Custom**.
2. Set **Page Width** to `8.5`.
3. Set **Page Height** to `11`.
4. Set **Unit** to `inches`.
5. Set **Top Margin** to `0.5`.
6. Set **Left Margin** and **Right Margin** to `0.25`.
7. Build the template body as a three-column table.
8. Save the template.

#### Business cards

Use these values for a standard business card layout:

1. Set **Page Layout** to **Custom**.
2. Set **Page Width** to `3.5`.
3. Set **Page Height** to `2`.
4. Set **Unit** to `inches`.
5. Set all margins to `0`.
6. Save the template.

#### Pre-printed letterhead

Use margin settings to leave room for the printed header area:

1. Keep **Page Layout** set to **Portrait**.
2. Set **Top Margin** to `2`.
3. Set **Bottom Margin** to `1`.
4. Set **Left Margin** and **Right Margin** to `0.75`.
5. Save the template.

### Common page sizes reference

| Format        | Width | Height | Unit   | Use case                |
| ------------- | ----- | ------ | ------ | ----------------------- |
| US Letter     | 8.5   | 11     | inches | Standard US documents   |
| A4            | 21    | 29.7   | cm     | International documents |
| Legal         | 8.5   | 14     | inches | Legal documents         |
| Tabloid       | 11    | 17     | inches | Large reports           |
| Business Card | 3.5   | 2      | inches | Business cards          |
| Envelope #10  | 9.5   | 4.125  | inches | Envelope layouts        |

{% hint style="info" %}
`1 inch = 2.54 cm`.
{% endhint %}

### Tips

* Use **Landscape** for wide output.
* Test print before production.
* Printers often require at least `0.25` inch margins.


---

# 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://help.sdocs.com/sdocs/template-architecture/template-settings/page-settings-tab/how-to-configure-custom-page-sizes.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.
