I am currently using PHPWord to generate my documents, but I want to add an horizontal line in the document. Just like an
Does anybody have more information about this feature?
Thank you!
Can you try using to add table and applying border instead of to add <hr>
using phpword
$styleTable = array('borderSize'=>1, 'borderColor'=>'006699');
$styleFirstRow = array('borderBottomSize'=>1, 'borderBottomColor'=>'0000FF');
$this->word->addTableStyle('myOwnTableStyle', $styleTable, $styleFirstRow);
// Add table
$table = $section->addTable('myOwnTableStyle');
Ref: http://www.ahowto.net/php/creating-ms-word-document-using-codeigniter-and-phpword