Relative Content

Tag Archive for pythondocxpython-docx

Multiple Numbered Lists with python-docx

I need to generate lots of similar one-page content in a single docx file for personal purposes, so I have created a Python script to automate that. Some of this content is a numbered list, but unfortunately, the numbering continues from page to page too, such as:

Python Docx : Is there a way to get the font size of an empty line/paragraph?

In Microsoft Word, if you press “return” between paragraphs, there would be an empty paragraph in between, and you can select the “return” to change the font size to make the empty line look higher or lower. So, is there a way to read the font size of that empty line with python?
ps. the empty paragraph is within a table cell.