> For the complete documentation index, see [llms.txt](https://docs.atfinity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.atfinity.io/document-xml-adx/adx-elements/page-number.md).

# Page Number

The `<pageNumber>` tag displays the number of the current page when it is printed. Page numbers are always displayed as `current page / total pages`, for example as `3 / 89`.

It can only be used within a [`<template>`](/document-xml-adx/adx-elements/template.md).

## Example

```markup
<template ...>
  ...
  <pageNumber
    left="20mm"
    bottom="20mm"
    width="190mm"
    height="10mm"
  />
  ...
<template>
```

## Attributes

The `<pageNumber>` tag inherits all attributes from [`<text>`](/document-xml-adx/adx-elements/text.md), including:

#### `left`, `bottom`

The position on the page in pt, mm, or cm.

#### `width`, `height`

The size of the text block in pt, mm, or cm.

#### `fontSize` (optional)

The font size used for the page number.

#### `color` (optional)

The text color.

#### `align` (optional)

Text alignment: `left`, `right`, `center`, or `justify`.

#### `class` (optional)

The style class to use.


---

# 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://docs.atfinity.io/document-xml-adx/adx-elements/page-number.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.
