gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 03:32:46 24 4
gpt4 key购买 nike

我正在使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com