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>.
Example¶
<template ...>
...
<pageNumber
left="20mm"
bottom="20mm"
width="190mm"
height="10mm"
/>
...
<template>
Attributes¶
The <pageNumber> tag inherits all attributes from <text>, 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.