# Page setup

Configure how a worksheet is laid out for printing — paper size, margins, orientation, scale, headers / footers, repeat rows / columns, print area, page breaks, fit-to-pages.

Topics:

* Paper: [Paper size](/english/page-setup/paper.md), [Margins](/english/page-setup/margins.md), [Orientation](/english/page-setup/orientation.md)
* Scale & direction: [Print scale](/english/page-setup/scale.md), [Landscape](/english/page-setup/landscape.md), [Portrait](/english/page-setup/portrait.md), [Fit to pages](/english/page-setup/fit-to-pages.md)
* Content: [Header and footer](/english/page-setup/header-footer.md), [Repeat rows](/english/page-setup/repeat-rows.md), [Repeat columns](/english/page-setup/repeat-columns.md), [Print area](/english/page-setup/print-area.md), [Page breaks](/english/page-setup/page-breaks.md)


---

# 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://xlswriter-docs.viest.me/english/page-setup.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.
