I'd started to use PHPWord to generate DOCX/ODT from my PHP application.
While it mostly works "out of the box" for me, there is an issue, while trying to add "Horizontal line" to my generated document.
This code just adds nothing, and I can't figure out what's the problem:
$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
$section->addLine(array('dash' => 'dash', 'width' => 100, 'height' => 2, 'weight' => 10));
$phpWord->save(wp_upload_dir()['basedir'].'/test.odt', 'ODText'); // it won't display horizontal line in DOCX either
Thanks for help