mPDF Manual – mPDF functions


(mPDF ≥ 2.0)

SetHTMLFooterByName – Sets an HTML page footer by a given name


void SetHTMLFooterByName ( string $name [, string $side ])

Sets an HTML page footer that has previously been defined by name.



This parameter specifies the name of a previously defined HTML page footer. If a BLANK string or null is passed, mPDF will use the value _default if such a page footer exists.


Specify whether to set the footer for ODD or EVEN pages in a DOUBLE-SIDED document.

Default: 'O'

Values (case-sensitive)

Set the footer for ODD pages in a DOUBLE-SIDED document, or for both ODD and EVEN in a SINGLE-SIDED document.
set the footer for EVEN pages

Default: 'O'


Version Description
2.0 The function was added.


For examples and further information please see:

See Also

Fork me on GitHub