我已经尝试使用python-docx进行以下操作:
section = self.document.sections[0]
footer = section._sectPr.footer
footer.text = "I am here"
我在docx文档中找不到清晰的页脚/页眉说明。有没有解决这个问题的方法?
解决方法是:
self.document = Document('')
为self.document = Document('init.docx')
。本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句