Read custom numbering from docx using python

I have requirement where i need to read custom numbering from docx, I am using python-docx 0.8 but that does not fully support numbering. I also tried to read protected property paragraph._p.pPr.numPr but no success.
I tried to extract the docx into xml and find relationship between numbering.xml and document.xml.
I do not get any success there as well since the numbering.xml has formula and it is apply by style tag i.e. (<w:pPr><w:pStyle w:val=”abc”/></w:pPr>) or through numPr (<w:pPr> <w:numPr><w:ilvl w:val=”0″/><w:numId w:val=”0″/></w:numPr></w:pPr>). I tried to find the relationship with numId with numbering.xml but no luck either.

The numbering in word document is like ‘[0001] This application’

Product of the Month September 2016

Source link

Leave a Comment

Your email address will not be published. Required fields are marked *