Hello,
Please check the documentation available on https://www.phpdocx.com/documentation/cookbook/headers-and-footers-for-sections . You need to generate a DOCX for each section and merge them; as you are using a Premium package, you can accomplish this task using in-memory documents too (please check the included samples in the package, DocxUtilities/mergeDocx folder).
Regards.