Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP TCPDF remove header's bottom border

Tags:

php

tcpdf

I am trying to create a header in TCPDF, however it always have a border underneath of it. Is there a way I can remove the bottom border?

like image 891
Bill Avatar asked Oct 31 '11 06:10

Bill


2 Answers

This works for some versions:

// Call before the addPage() method $pdf->SetPrintHeader(false); $pdf->SetPrintFooter(false); 
like image 71
András Avatar answered Sep 19 '22 19:09

András


If you don't want to subclass or change the tcpdf source just call the setHeaderData method and specify white line color.

$pdf->setHeaderData('',0,'','',array(0,0,0), array(255,255,255) );   
like image 41
James Avatar answered Sep 18 '22 19:09

James