mPDF Manual – mPDF functions

# SetFooterByName()

(mPDF >= 2.0)

SetFooterByName – Sets a page footer by a given name

## Description

void SetFooterByName ( string $name [, string$side ])

Sets a page footer that has previously been defined by name.

## Parameters

$name This parameter specifies the name of a previously defined page footer. If a BLANK string or NULL is passed, mPDF will use the value ‘_default’ if such a page footer exists.$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 in a DOUBLE-SIDED document, or for both ODD and EVEN in a SINGLE-SIDED document.

E - set the footer for EVEN pages

DEFAULT - sets the footer for ODD in a DOUBLE-SIDED document, or for both ODD and EVEN in a SINGLE-SIDED document.

## Changelog

VersionDescription