Hello,
After purchasing an Advanced or a Premium license, please send two sample DOCX documents (one to be used as template and another with the headers/footers to be imported), and we'll generate a sample script using DOCXPath to illustrate how to do the requested task. You'll be able to use this sample script to generate other scripts if needed; of course the serial/page content to be imported must have something to be queried by (position, content, format, ID or any other property as DOCXPath requires; on https://www.phpdocx.com/documentation/introduction/docxpath you can undestand how DOCXPath works).
Regards.