Forum


Replies: 1   Views: 2673
Repeating headers in pages
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  · 18-05-2017 - 07:03

Hello,

The addHeader method allows to set the default, even and first headers: https://www.phpdocx.com/api-documentation/layout-and-general/insert-headers-Word-document-with-PHP

The easiest solution to accomplish what you need is using the mergeDocx available in Advanced and Premium licenses (setting headers and footers per section as MS Word does and merging the documents to get a single DOCX):

https://www.phpdocx.com/documentation/cookbook/headers-and-footers-for-sections

Regards.