我正在使用 mpdf,并希望为最后生成的 PDF 页面添加特定的页脚。
这可能吗?
我知道您可以使用“@page:first”来定位第一页,但“@page:last”不起作用。
任何帮助都会很棒......
最佳答案
Add the <sethtmlpagefooter />
tag在 HTML 标记的最后,它将为最后一页设置定义的页脚。
<htmlpagefooter name="LastPageFooter">
Show me on the last page
</htmlpagefooter>
Really long text that expands over multiple pages
...
...
...
<sethtmlpagefooter name="LastPageFooter" value="1" />
关于php - 我可以为 MPDF 的最后一页设置特定的页脚吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51310520/