SetHTMLFooter()
(mPDF ≥ 1.2)
SetHTMLFooter – Sets an HTML page footer
Description
void SetHTMLFooter ( string $html [, string $side ])
Set an HTML page footer.
Parameters
- $header
-
This parameter specifies the content of the page footer as a string of valid HTML code.
Default: BLANK
- $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'E'
- set the footer for EVEN pages
BLANK - set the footer for ODD pages
Note: Important Difference
- SetHeader() and SetFooter() called without specifying a $side sets both ODD & EVEN headers/footers;
- SetHTMLHeader() and
SetHTMLFooter()
without a $side - set ODD page header/footer only as default
Changelog
Version | Description |
---|---|
1.2 | The function was added. |
Examples
For examples and further information please see: