Forum


Replies: 1   Views: 63
How to add different footer as per odd even page no

Posted by fairshareitservices  · 03-12-2024 - 05:40

I am using $merge->mergeDocx to merge word docx. While merging pages I want page numbers to be added differently as per odd even page numbers. For eg if on first page page no is on left side then on next it will be on right side and so on. Along with page no we need to add one image as well and that to opposite side of page no. So how to do this while merging pages?

Posted by admin  · 03-12-2024 - 07:07

Hello,

mergeDocx doesn't change the contents of the documents.

If you need to add or change content in a document, you must use the phpdocx methods with the documents to be merged or the merged output. For example, using addHeaderSection or addFooterSection methods with the available targets (default, even, and first) to add custom headers and footers.

Regards.