DumbergerL
DumbergerL

Reputation: 171

TCPDF - Hide the Border of a Cell

I am using the TCPDF Object in PHP to create a PDF. I have a backgroundimage and i try to set some Text on it on a specific place. My Question is: How can i disable the borders of a Cell? Why does the code not work?

$pdf->SetLineStyle(array('width' => 0, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 255, 255)));

$pdf->SetXY(144,62);
$pdf->Cell(50,13, '10,00 EUR', 1, $ln=0, 'C', 0, '', 0, false, 'C', 'C');

Upvotes: 2

Views: 4132

Answers (1)

Jakuje
Jakuje

Reputation: 25926

The fourth argument of Cell() function is a $border:

Cell( $w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M' )

Just set it to 0:

$pdf->Cell(50,13, '10,00 EUR', 0, $ln=0, 'C', 0, '', 0, false, 'C', 'C');

Upvotes: 3

Related Questions