Replies: 1   Views: 2002
No front-page header
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

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: