I have a header/footer that is generated by html. Is it possible to add page numbers to the same header/footer at the same time ?
I have a header/footer that is generated by html. Is it possible to add page numbers to the same header/footer at the same time ?
Hello,
phpdocx 9 Premium licenses include HTML Extended to add page numbers from HTML and other contents: https://www.phpdocx.com/documentation/introduction/html-extended-to-word-PHP
Page numbers can't be added with HTML, but you can add a new placeholder and then create a WordFragment with the page number and the replaceVariableByWordFragment method to replace the placeholder by the WordFragment.
Regards.