Skip to main content

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​

AttributeTypeDefaultDescription
BehaviorsSee the Behaviors attribute reference
showCurrentBOOLEANtrueSpecifies if the text field with the page number currently being viewed is displayed. It can be either true or false
showTotalBOOLEANtrueSpecifies if the total number of pages in the document is displayed. It can be either true or false
editableBOOLEANtrueSpecify 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
colorCOLOR0x000000Color for the elements' texts
sizeINTEGER12Specifies the size in pixels of the texts of the element
fontSTRING_sansSpecifies 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
alignSTRINGrightSpecifies 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.