如何使用python-docx在每个页脚的页脚中添加页码? [英] How can I add page numbers to each page's footer with python-docx?

查看:716
本文介绍了如何使用python-docx在每个页脚的页脚中添加页码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为这个问题很容易解释.根据我阅读的python-docx文档,似乎页眉和页脚必须完全相同,这当然会使添加页码变得困难.这可能吗?

I think this question is pretty self explanatory. From what I've read of the python-docx documentation, it seems that the header and footer must be exactly the same on every page, which of course makes adding page numbers difficult. Is this possible?

推荐答案

添加页眉和页脚是一项尚未实现的功能.

Adding headers and footers is a feature not yet implemented.

但是...

如果它是一个新文档,那么您确实可以先继续创建一个模板文档,然后将其打开并按照scanny的描述继续进行编辑.

If it is a new document then you can indeed go on and create a template document first and then open it up and continue editing as described by scanny.

这篇关于如何使用python-docx在每个页脚的页脚中添加页码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆