Wednesday, 15 May 2013

php - TCPDF Multiple Footers -



php - TCPDF Multiple Footers -

i using tcpdf generate pdf documents. problem have trying add together different footer per page. apparently, tcpdf provides solution single footer.

each footer contains basic html code without styling.

any ideas?

you can turn of default footer this:

$pdf->setprintfooter(false);

create own 1 this:

$footer = 'yau man footer stuff';

and create own footer function:

public function _footer($input) { $text = $input; $pdf->sety(-15); // or whatever location footer should displayed. $pdf->cell ( // or method write(), writehtml() .. $width = 0, // width of cell, not input $height = 0, // height of cell.. $x, $y, $text = '', // input. $border = 0, $ln = 0, $fill = false, $reseth = true, $align = '', $autopadding = true ); }

by calling $pdf->_footer($footer); create own footer

php footer tcpdf

No comments:

Post a Comment