mPDF Manual – mPDF functions

DefHTMLHeaderByName()

(mPDF ≥ 2.0)

DefHTMLHeaderByName – Define an HTML page header with a given name

Description

void DefHTMLHeaderByName ( string $name [, string $html ])

Define an HTML page header with a given name. Named headers can be referenced and set later in the document e.g. SetHTMLHeaderByName()

Parameters

$name

User-defined name for the header. If $name= '' (blank) the name _default is used.

$html

This parameter specifies the content of the page header as a string of valid HTML code.

Default: BLANK

Changelog

Version Description
2.0 The function was added.

Examples

For examples and further information please see:

See Also

Fork me on GitHub