如何在TCPDF中删除标题下方和$ html上方的行? [英] How to remove line below header and above $html in TCPDF?

查看:123
本文介绍了如何在TCPDF中删除标题下方和$ html上方的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在TCPDF中删除标题下方和$ html上方的行?

How to remove line below header and above $html in TCPDF?

http://www.tcpdf.org/examples/example_001.pdf

tcpdf.org/examples.php(带有PDF和PHP代码的示例!)

tcpdf.org/examples.php (examples with PDF ang PHP code!)

在此示例中,该行位于 http://www.tcpdf.org 下方,并且位于欢迎使用TCPDF"上方.我该如何删除呢?

in this example this is line below http://www.tcpdf.org and above Welcome to TCPDF. How can i remove this?

推荐答案

tcpdf网站-示例中所示示例002 没有标题,这里是

As shown on the tcpdf website - examples in exemple 002 there is no header and here is the php code example.

魔术"是通过以下代码完成的:

The "magic" is done by this code:

// remove default header/footer
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);

就是这样!希望对您有帮助

and that is it! Hope it helps

这篇关于如何在TCPDF中删除标题下方和$ html上方的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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