How to remove line below header and above $html in TCPDF?
http://www.tcpdf.org/examples/example_001.pdf
tcpdf.org/examples.php (examples with PDF ang PHP code!)
in this example this is line below http://www.tcpdf.org and above Welcome to TCPDF. How can i remove this?
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
You can remove it by subclassing TCPDF class, and overriding the methods Header() and Footer():
class MyTCPDF extends TCPDF
{
public function Header()
{
// NOP! Overrides default header
}
public function Footer()
{
// NOP! Overrides default footer
}
}
I V tried writing this code,^_^
it works for both header & footer.
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With