[web2py] Python DocX , paragraph formating

2015-07-11 Thread M S Pangtey
Hi, I am facing problem in formatting Docx file using python docx library. I am able to replace some paragraph text but not able to maintain text font and font weight. Below is the pseudo code for this from docx import Document # read doc file doc = Document(file name) # now I need to replace

[web2py] paragraph font extraction using pydocx

2015-07-14 Thread M S Pangtey
Hi, I am facing problem in formatting Docx file using python docx library. I am able to replace some text in a paragraph but can't maintain text font. from docx import Document # read doc file doc = Document(file name) # now I need to replace few words in a paragraph,(lets say replace a key in