Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TCPDF grey background for few cells?

I'm using TCPDF in CakePHP and trying to make some background (grey) for few cells. Well here the idea:

alt text

so the grey thing would somehow have to be define outside of the cells containg text.

Any ideas?
Paul

like image 239
pawelmysior Avatar asked Jan 23 '23 11:01

pawelmysior


1 Answers

try this.

$this -> TCPDF -> SetFillColor(249,249,249); // Grey
$this -> TCPDF -> Cell(95,$cellHigh,$data,'L',0,'L',$fill,'',0,false,'T','C');

The TCPDF example No. 5 will give you different background colors.

like image 56
raf_qpsk Avatar answered Jan 30 '23 15:01

raf_qpsk