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 ?
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowI 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.