-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
I have the code below but the color of the border seems to be unchangeable. I read that it's cell specific as well so set the same to the cell as well. Still no change though. The font style is being set, the border still remains visible and black.
$phpWord = \PhpOffice\PhpWord\IOFactory::load($file);
$styleTable = array('borderColor'=>'ffffff', 'borderSize'=> 0, 'cellMargin'=>50, 'valign'=>'center');
$styleFirstRow = array('bgColor'=>'ffffff', 'valign'=>'center');
$styleCell = array('valign'=>'center');
$fontStyle = array('bold'=>false, 'align'=>'center', 'color'=>'ccc');
$phpWord->addTableStyle('myTable', $styleTable, $styleFirstRow);
$section = $phpWord->createSection();
$table = $section->addTable('myTable');
$table->addRow(900);
$table->addCell(2000, $styleCell)->addText('#SIG01_100_200#', $fontStyle);
$table->addCell(2000, $styleCell)->addText('#SIG02_100_200#', $fontStyle);
$xmlWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord , 'PDF');
$xmlWriter->save($file_pdf);
arnegroskurth
Metadata
Metadata
Assignees
Labels
No labels