Register Lost your password?
Full api documentation: full api documentation FREE version full api documentation PRO version

public function addFooter(string text, array paramsFooter = array())

Parameters

$text

  • Text that will appear in the footer



$paramsFooter

  • ‘pager’ (pager): ‘true’
  • ‘pagerAlignment’ (pager alignment): ‘left’, ‘center’, ‘right’

Examples

Example 1


require_once '../../classes/CreateDocx.inc';

$docx = new CreateDocx();

$paramsFooter = array(
    'font' => 'Times New Roman'
);

$docx->addFooter('Footer. Times New Roman font', $paramsFooter);

$docx->createDocx('example_footer');

    2 Responses

  • manoj

    how to add the footer as html table

  • nico

    is it possible, to customize the page number of the footer?

    for example : when u set the pager to true, you just get a single number like 1 , 2 , 3 …
    what i want to do is something like “- 1 -” or not the normal page mergefield but the overall pagefield like “1 of 10″ or “1 / 10″

Your comments