I am using PHPWord to construct a Word document from scratch. I am using a table in the header to position the three items where I want them, as I struggled managing the layout just placing text blocks.
While I've been able to get the header content positioned at the top of the page (without the following code it was pushing it down closer to the margins)
$section = $phpWord->addSection(['headerHeight' => 200]);
I've been unable to get the header to fit the full page width, it always aligns within the margins
$header = $section->addHeader();
$table = $header->addTable(['unit' => \PhpOffice\PhpWord\Style\Table::WIDTH_PERCENT,
'width' => 100 * 50]);
I have tried using things like this sample but the table seems to remain constrained within the margins.