mPDF Manual – mPDF functions

SetHTMLHeader()

(mPDF >= 1.2)

SetHTMLHeader – Sets an HTML page header

Description

void SetHTMLHeader ( string $html [, string $side [, boolean $write ]])

Set an HTML page header.

Parameters

$header

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

DEFAULT: BLANK

$side

Specify whether to set the header for ODD or EVEN pages in a DOUBLE-SIDED document.

DEFAULT: BLANK

Values (case-sensitive)

O - set the header for ODD pages

E - set the header for EVEN pages

BLANK - sets ODD page headers

$write

If TRUE it 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.

DEFAULT: FALSE

Changelog

VersionDescription
1.2 The function was added.

Examples

For examples and further information please see:

See Also