html2pdf页码 [英] html2pdf page numbering

查看:87
本文介绍了html2pdf页码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的代码:

$html2pdf = new HTML2PDF('P','A4','en');
$html2pdf->WriteHTML($html);
$html2pdf->Output();

如何在文档底部添加页码?

How add page number at the bottom of the document?

推荐答案

我仍在寻找它......我刚刚找到了解决方案:在您的模板中,插入如下代码:

i'm still looking for it ... and i have just found the solution : in your template, insert a code like :

<page>
  <page_footer>
    [[page_cu]]/[[page_nb]]
  </page_footer>
</page>

完整示例:http://wiki.spipu.net/doku.php?id=html2pdf:en:v4:书签

这篇关于html2pdf页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆