SetHTMLFooterByName()
(mPDF ≥ 2.0)
SetHTMLFooterByName – Sets an HTML page footer by a given name
Description
void SetHTMLFooterByName ( string $name [, string $side ])
Sets an HTML page footer that has previously been defined by name.
Note: This function/method was altered in mPDF 2.2 by capitalising the first letter of the name. As function/method names in PHP have hitherto been case-insensitive, this should not cause any problems, but it is recommended where possible to use the preferred spelling.
Parameters
- $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. - $side
-
Specify whether to set the footer for ODD or EVEN pages in a DOUBLE-SIDED document.
Default:
'O'
Values (case-sensitive)
'O'
- Set the footer for ODD pages in a DOUBLE-SIDED document, or for both ODD and EVEN in a SINGLE-SIDED document.
'E'
- set the footer for EVEN pages
Default:
'O'
Changelog
Version | Description |
---|---|
2.0 | The function was added. |
Examples
For examples and further information please see: