Php 我可以为MPDF的最后一页设置特定页脚吗?

Php 我可以为MPDF的最后一页设置特定页脚吗?,php,mpdf,Php,Mpdf,我使用的是mpdf,希望为生成的最后一个PDF页面提供一个特定的页脚 这可能吗 我知道你可以使用@page:first来定位第一页,但是@page:last不起作用 任何帮助都很好…在HTML标记的最后,它将为最后一页设置定义的页脚 <htmlpagefooter name="LastPageFooter"> Show me on the last page </htmlpagefooter> Really long text that expands over

我使用的是mpdf,希望为生成的最后一个PDF页面提供一个特定的页脚

这可能吗

我知道你可以使用@page:first来定位第一页,但是@page:last不起作用

任何帮助都很好…

在HTML标记的最后,它将为最后一页设置定义的页脚

<htmlpagefooter name="LastPageFooter">
    Show me on the last page
</htmlpagefooter>

Really long text that expands over multiple pages
...
...
...

<sethtmlpagefooter name="LastPageFooter" value="1" />

同样的问题也发生在我身上。 我是通过在样式之后使用以下代码来修复它的

只需将其视为一个变量,那么打开和关闭htmlpagefooter之间的所有内容都将显示在插入sethtmlpagefooter的位置

<htmlpagefooter name="footer">
contact mail etc
</htmlpagefooter>
一些正文内容


嗨,杰克。谢谢你。但是我在最底层有这个集合,所以我把最后一段代码放在哪里?//PDF footer content$mpdf->SetHTMLFooter'footer for all pages';那么我应该把这个放在哪里。。。有关更多详细信息,请查看
<sethtmlpagefooter name="footer" />