PageNumber
The <pageNumber> element may be used for displaying which page of the document is currently being viewed as well as the total number of pages in the document.
The user may also jump to a different page by entering a new page number into the text field and pressing the Enter key.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
| Behaviors | See the Behaviors attribute reference | ||
| showCurrent | BOOLEAN | true | Specifies if the text field with the page number currently being viewed is displayed. It can be either true or false |
| showTotal | BOOLEAN | true | Specifies if the total number of pages in the document is displayed. It can be either true or false |
| editable | BOOLEAN | true | Specify if the text field is editable. If the text field is not editable, the current page number will be displayed as simple text. It can be either true or false |
| color | COLOR | 0x000000 | Color for the elements' texts |
| size | INTEGER | 12 | Specifies the size in pixels of the texts of the element |
| font | STRING | _sans | Specifies the fonts (comma-separated list) to use for the texts of the element. The first font of the list found on the user's system will be used |
| align | STRING | right | Specifies the alignment of the text in the page number field. Either left, center or right |
info
A <pageNumber> element must be placed inside a <layout> element.