> 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 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](/sdocs/template-architecture/template-settings/document-options-tab/how-to-handle-international-characters.md).

Preview setup lives in [How to Set Up Template Preview](/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](/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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
