htmlpagefooter
(mPDF ≥ 2.0)
htmlpagefooter – Define an HTML page footer with a given name
Description
<htmlpagefooter $name > $html </htmlpagefooter>
Define an HTML page footer with a given name. Named footer can be referenced and set later in the document e.g. <sethtmlpagefooter>
Note: Do not name any header or footer starting with html_
. This prefix is reserved to identify an
HTML header/footer when passing its name in a reference.
Note: Remember that, unlike most mPDF custom tags which are self-closing with />
, htmlpageheader
and htmlpagefooter require end tags.
If you wish to make the HTML code compatible with browsers, see Custom tags
Attributes
- $name
-
This attribute is a text string to use as the name for this footer.
If name is BLANK or omitted, it is set as
_default
.
Content
- $html
-
Any valid HTML code can be enclosed between the tags, and will be parsed by mPDF as for any other content.
Changelog
Version | Description |
---|---|
2.0 | The tag was added. |
Examples
For examples and further information please see: