【发布时间】:2011-12-15 12:54:55
【问题描述】:
我想将页脚部分放在文档的每一页上,除了第一页。
我通过扩展 TCPDF 类并覆盖其页脚方法来创建自定义页脚。
然后根据文档并使用以下示例,我知道我应该使用 SetPrintHeader 和 SetPrintFooter 方法:
http://www.tcpdf.org/examples/example_002.phps
// Page one
$pdf->SetPrintHeader(false);
$pdf->SetPrintFooter(false);
$pdf->AddPage();
// Page two and on ..
$pdf->SetPrintHeader(true);
$pdf->SetPrintFooter(true);
$pdf->AddPage();
但是,以上内容并不能完全阻止页脚/页眉的打印!
我在这里做错了什么?
提前一百万谢谢!!
【问题讨论】:
标签: tcpdf