> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/template-architecture/template-settings/page-settings-tab.md).

# Page Settings Tab

Use Page Settings to control page size, orientation, margins, and measurement units in the Template Editor.

Use this page when you need to control the physical layout of a generated document.

**Page Settings** defines the page canvas before you style the template body.

Use it to choose page orientation, set a custom size, and control the printable area with margins.

{% hint style="info" %}
This tab covers page dimensions only.

Unicode settings live in [How to Handle International Characters](https://help.sdocs.com/sdocs/template-architecture/template-settings/document-options-tab/how-to-handle-international-characters.md).

Preview setup lives in [How to Set Up Template Preview](https://help.sdocs.com/sdocs/template-architecture/template-settings/advanced-options-tab/how-to-set-up-template-preview.md).
{% endhint %}

### What you can configure in Page Settings

The Page Settings tab includes these fields:

* **Page Layout** — choose **Portrait**, **Landscape**, or **Custom**.
* **Page Width** — set a custom page width when **Page Layout** is **Custom**.
* **Page Height** — set a custom page height when **Page Layout** is **Custom**.
* **Top Margin** — control space above the document body.
* **Bottom Margin** — control space below the document body.
* **Left Margin** — control space on the left side of the page.
* **Right Margin** — control space on the right side of the page.
* **Unit** — choose `inches`, `centimeters`, or `pixels`.

### What you can do on this tab

Use these settings to:

* switch between standard portrait and landscape output
* create custom page sizes for labels, cards, forms, or regional paper formats
* adjust margins for letterhead, binding, printers, and fixed-layout designs
* match layout requirements before you style the template body

###

{% hint style="info" %}
If you are using a template type built on a fixed uploaded PDF, page-level layout controls work differently.

Use [Upload Existing PDFs](https://help.sdocs.com/sdocs/template-architecture/document-formats/pdf-upload-format.md) when exact overlay placement matters more than page-size configuration.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.sdocs.com/sdocs/template-architecture/template-settings/page-settings-tab.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
