You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's more or less possible to get pagination out of a DOCX file created by some versions of MSWord (notably not Word 365..) by looking at the <w:lastRenderedPageBreak/> elements. See https://ooxml.info/docs/17/17.3/17.3.3/17.3.3.13/
This is only partially supported by python-docx but we can just get it with XPath. I read CONTRIBUTING.md and I'm not supposed to do this, but I need the feature, so I made a PR anyway 😉 #832
Alternatives
There is no alternative! No, not true - pagination is always approximate for DOCX since it isn't (exactly) a presentation format. So, if you want to really know the page number, then render to a PDF first. Now you have two problems!
The text was updated successfully, but these errors were encountered:
Requested feature
It's more or less possible to get pagination out of a DOCX file created by some versions of MSWord (notably not Word 365..) by looking at the
<w:lastRenderedPageBreak/>
elements. See https://ooxml.info/docs/17/17.3/17.3.3/17.3.3.13/This is only partially supported by
python-docx
but we can just get it with XPath. I readCONTRIBUTING.md
and I'm not supposed to do this, but I need the feature, so I made a PR anyway 😉 #832Alternatives
There is no alternative! No, not true - pagination is always approximate for DOCX since it isn't (exactly) a presentation format. So, if you want to really know the page number, then render to a PDF first. Now you have two problems!
The text was updated successfully, but these errors were encountered: