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.