Footer in last printed page MPDF

时光总嘲笑我的痴心妄想 提交于 2020-01-13 05:17:46

问题


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.


回答1:


Try first WriteHTML then SetHTMLFooter, order matters!

$mpdf->WriteHTML($content);
$mpdf->SetHTMLFooter('<div>your html footer</div>');


来源:https://stackoverflow.com/questions/19552405/footer-in-last-printed-page-mpdf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!