Write html to custom header tcpdf -


i'm struggling understand how header function working in tcpdf.

is possible use $pdf->writehtml header?

http://www.tcpdf.org/examples/example_003.phps

i display 3 columns in header.

 column1 column2 column3 

problem solved, credits simon @ https://sourceforge.net/p/tcpdf/discussion/435311/thread/505a9e13/

class mypdf extends tcpdf { public function header() {     $headerdata = $this->getheaderdata();     $this->setfont('helvetica', 'b', 10);     $this->writehtml($headerdata['string']); } } $pdf = new mypdf(pdf_page_orientation, pdf_unit, pdf_page_format, true, 'utf-8', false); $pdf->setheaderdata($ln='', $lw=0, $ht='', $hs='<table cellspacing="0" cellpadding="1" border="1">tr><td rowspan="3">test</td><td>test</td></tr></table>', $tc=array(0,0,0), $lc=array(0,0,0)); 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -