The default height of list headers and footers is two row heights (about 3/4 inches or 2 cm).
Change the header and footer marginClick VIEW > Ruler. Double-click the header or footer area. Press CTRL+A. On the ruler, drag the right indent marker.
Is there a workaround for adding headers and footers in a Microsoft Word (docx
) file?
These are not implemented in versions of python-docx
prior to 0.8.8
.
More specifically, I would like to add:
The ideal code will look as follows:
from docx import Document
document = Document()
# Add header and footer on all pages
document.save("demo.docx")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With