$pdf = new TCPDF(); $pdf->setPrintFooter(true); $pdf->setFooterData('Footer', 10, false);
$pdf->setPrintFooter(true); $pdf->setFooterData(array(0,64,0), array(0,0,0)); $pdf->setFooterFont(Array('helvetica', '', 10)); $pdf->setFooterMargin('20');In this example, we enable the print footer option and define the footer data to display an image at (0,64,0) position and the font for the text as Helvetica, font size 10. We also set the footer margin to 20mm. Package library: TCPDF, a PHP library for generating PDF documents.