Forum


Replies: 11   Views: 4531
Headers being added in merge
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  · 23-09-2015 - 14:17

Hello, To avoid adding headers of the first document to be merged, you need to replace or remove them. To do this you can use the importHeadersAndFooters method using a DOCX with empty headers and footers. Other approach is to make public this method: private function removeHeadersAndFooters() in the CreateDocx.inc, that removes both contents. Regards.