【发布时间】:2014-11-27 21:45:12
【问题描述】:
我正在使用 mdpf 和 php 生成 PDF。每次使用标签分页符时,我都需要创建不同的页脚。
我的代码是这样的(但它不是这样工作的)
$mpdf = new mPDF('c', 'A4');
$mpdf->SetHTMLFooter('First Article','O');
$html = 'Lots of text';
.
.
.
$html .= "pagebreak"; (this is a html tag)
$html .= 'More lots of text';
$mpdf->SetHTMLFooter('Second Article','O');
$mpdf->WriteHTML($html);
print $mpdf->Output();
我该怎么做?
【问题讨论】:
-
您好,您的问题不清楚。你想设置什么不同的页脚?为什么不使用
SetHTMLFooter为每个页面设置页脚