Hello,
Please note that in a DOCX document, headers and footers are defined per section, not per page (a new section can generate a new page). Headers and footers support the following targets: default, first page, and even pages.
You can add the same header content to all sections and different default footers for each section.
Methods such as importHeadersAndFooters (the type option allows importing headers or footers), addHeaderSection (inserts headers in a specific section into the Word document), and addFooterSection (inserts footers in a specific section into the Word document) are very useful for adding headers and footers.
If you need to get section information from a document dynamically, you can use Indexer or getDocxPathQueryInfo.
Regards.