I'm generating a .docx document and I want to add the page number and the sum of the page in the header section.
Like in this image (yellow background):
How can I do that? Thank you very much
I'm generating a .docx document and I want to add the page number and the sum of the page in the header section.
Like in this image (yellow background):
How can I do that? Thank you very much
Unfortunately page breaks are not inserted by the .doxc file but by the rendering engine so you can't accurately get page counts. However people have asked this before and you might be able to use a script to estimate Page number python-docx