Forum


Replies: 1   Views: 2950
With importheadersandfooters different headers
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 KRav  · 11-07-2016 - 20:05

Is it possible to have different headers in document with this function?

Now my first page get no header, but I like to have one on first page, too.

Posted by admin  · 12-07-2016 - 18:12

Hello,

The method importHeadersAndFooters imports headers and/or footers from a DOCX but all of them not a specific one.

You could try using addHeader and set first key value to add a new header. But the best approach is to use the mergeDocx method available in Corporate and Enterprise licenses to merge one or other first page as needed.

Regards.