mPDF Manual – Headers & Footers

Page numbers & Date

In any page header or footer, '{PAGENO}' or '{DATE j-m-Y}' can be used - which will be replaced by the page number or current date. j-m-Y can be replaced by any of the valid formats used in the php date() function.

The page number is the calculated number, taking regard of any resetting of numbering during the document.

You can also use the GLOBAL replacement aliases '{nb}' and '{nbpg}' (see  Replaceable Aliases).

Fork me on GitHub