Footer in last printed page MPDF

2019-04-11 01:11发布

Hi i am using MPDF but i cant print footer on the last page, i am printing 2-7 pages this is my code for footer

$mpdf->SetHTMLFooter('
<div id="firmas">
<table width="100%"><tr>
<td><br><br><br><br><br><small><h3><font face=\'Arial\'>Recibí Conforme</font>
</h3><small>    </td><td><br><br><br><br><small><h3><font face=\'Arial    
\'>Vo.Bo</font>    
</h3><small></td><td><small><br><br><br><br><br><h3><font face=\'Arial\'>Entregue 
Conforme</font></h3><small></td>
</tr>
</table>
</div>
');

I would like to display this in the last page and not in every page.

标签: php mpdf
1条回答
Lonely孤独者°
2楼-- · 2019-04-11 01:43

Try first WriteHTML then SetHTMLFooter, order matters!

$mpdf->WriteHTML($content);
$mpdf->SetHTMLFooter('<div>your html footer</div>');
查看更多
登录 后发表回答