python-docx getting docx information

自古美人都是妖i 提交于 2019-12-11 07:19:32

问题


I was trying to copy the whole text from a docx file with all the styles, font information, images and table data. I get the text from the docx file but when I try to get the font information with doc.paragraphs[0].runs[0].style.font.name it shows None. Can anyone help me?

来源:https://stackoverflow.com/questions/53205307/python-docx-getting-docx-information

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!