Forum


Replies: 1   Views: 2246
Different headers and footers
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 rapidtech  · 20-04-2020 - 12:29

Hello. 

I am generating my DOCX files from HTML. I need to be able to set different Headers and Footers for the pages. I found the solution by creating an array of pages merging them in the end. It doesn't work for me. In my case, the first page is not always a Title page and it not necessarily has the same amount of text. As a result, I can't separate the first page from the rest of the content. Also, there could be a situation when I need to set an original header somewhere in the middle of a document, let's say knowing only the page number.

In which way I can achieve that?