gpt4 book ai didi

php - html2pdf 在每页页脚添加内容

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:44:00 25 4
gpt4 key购买 nike

我有 5-10 个 pdf 表格,其中显示了该表格的所有记录,每个表格都有大约 1000-2000 条记录。我尝试使用下面的代码在每个页面上制作页脚,而不是在表格完成后显示。我的模板如下所示

   <page backtop="0" backbottom="30mm" footer="page" style="font-size: 9pt">
<table>
<Records>
</table>
<page_footer>
<table class="page_footer" style="width: 100%;">
<tr>
<td style="width: 80%; text-align:center">
<p style='font-size: 6pt;color:red;'>
...Content...
</p>
</td>
</tr>
</table>
</page_footer>

最佳答案

您可以通过混合使用 tcPDFwkhtml2pdf 添加自定义页眉和页脚。这是一个例子 html2pdf/tcpdf/example .这是另一个例子 html2fpdf/discussion/thread

关于php - html2pdf 在每页页脚添加内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34023114/

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