Task #1987
TCPDF cell
Start date:
11/16/2022
Due date:
% Done:
0%
Estimated time:
Description
Hello
In a table is it possible to have a cell with different border color
Currently we can just use for one cell row
'BORDER_COLOR' => [0, 92, 177]
'BORDER_TYPE' => 'LR',
Updated by Andrei Bintintan over 1 year ago
- Status changed from New to Resolved
You can specify the BORDER_COLOR
and BORDER_SIZE
for each cell.
Be aware that adjacent cells partially overlap the borders, depending on the border width.
for ($j = 1; $j < 5; $j++) {
$row = [];
$row[0]['TEXT'] = "Line $j Text 1"; //text for column 0
$row[1]['TEXT'] = "Line $j Text 2"; //text for column 1
$row[2]['TEXT'] = "Line $j Text 3"; //text for column 2
$row[2]['BORDER_COLOR'] = [120, 150, 0]
$row[2]['BORDER_SIZE'] = 1
//add the row
$table->addRow($row);
}
Updated by Andrei Bintintan over 1 year ago
- Status changed from Resolved to Feedback
- Assignee set to Younes Slaoui