mPDF Manual – mPDF functions

DefFooterByName()

(mPDF >= 2.0)

DefFooterByName – Define a page footer with a given name

Description

void DefFooterByName ([ string $name [, array $footer ]])

Define a page footer with a given name. Named footers can be referenced and set later in the document e.g. SetFooterByName()

Parameters

$name

User-defined name for the footer. If $name = BLANK the name ‘_default’ is used.

</span>

$footer

This parameter specifies the content of the page footer as an array.

DEFAULT: array()abov

Values in the array

$content: TEXT STRING

$font-size: FLOAT font size in pts

$font-style: B I BI BLANK STRING

$font-family: Any available font-family

$color: CSS ‘#RRGGBB’ string

$line: 0 1 - specify whether to draw a line above the footer
$footer = array (

    'L' => array (

      'content' => '',

      'font-size' => 10,

      'font-style' => 'B',

      'font-family' => 'serif',

      'color'=>'#000000'

    ),

    'C' => array (

      'content' => '',

      'font-size' => 10,

      'font-style' => 'B',

      'font-family' => 'serif',

      'color'=>'#000000'

    ),

    'R' => array (

      'content' => 'My document',

      'font-size' => 10,

      'font-style' => 'B',

      'font-family' => 'serif',

      'color'=>'#000000'

    ),

    'line' => 1,

);

Changelog

VersionDescription
2.0 The function was added.

Examples

For examples and further information please see:

See Also