(mPDF ≥ 2.0)
SetHTMLHeaderByName – Sets an HTML page header by a given name
void SetHTMLHeaderByName ( string $name [, string $side [, boolean $write ]])
Sets an HTML page header 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.
This parameter specifies the name of a previously defined HTML page header. If a BLANK string or
nullis passed, mPDF will use the value
_defaultif such a page header exists.
Specify whether to set the header for ODD or EVEN pages in a DOUBLE-SIDED document.
- set the header for ODD pages in a DOUBLE-SIDED document, or for both ODD and EVEN in a SINGLE-SIDED document.
- set the header for EVEN pages
trueit forces the Header to be written immediately to the current page. Use if the header is being set after the new page has been added.
|2.0||The function was added.|
For examples and further information please see: