Replies: 1   Views: 115
No front-page header

Posted by admin  · 02-08-2019 - 06:42


The existing headers in the section are removed when calling addHeader. So you need to call it using the same addHeader call:

$docx->addHeader(array('first' => $firstheaderTable, 'default' => $headerTable));

If you need to generate more complex header/footer layouts or apply them per section you need to use the features included in Advanced and Premium licenses: