更改或消除标题和TCPDF中的页脚 [英] Changing or eliminating Header & Footer in TCPDF

查看:255
本文介绍了更改或消除标题和TCPDF中的页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AddPage()会自动调用页眉和页脚.我该如何消除/替代呢?

AddPage() in tcpdf automatically calls Header and Footer. How do I eliminate/override this?

推荐答案

在调用AddPage()之前,请使用SetPrintHeader(false)SetPrintFooter(false)方法.像这样:

Use the SetPrintHeader(false) and SetPrintFooter(false) methods before calling AddPage(). Like this:

$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, 'LETTER', true, 'UTF-8', false);
$pdf->SetPrintHeader(false);
$pdf->SetPrintFooter(false);
$pdf->AddPage();

这篇关于更改或消除标题和TCPDF中的页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆