docx

Extract DOCX Comments

Extract DOCX Comments Question: I’m a teacher. I want a list of all the students who commented on the essay I assigned, and what they said. The Drive API stuff was too challenging for me, but I figured I could download them as a zip and parse the XML. The comments are tagged in w:comment …

Total answers: 4

Python: Convert PDF to DOC

Python: Convert PDF to DOC Question: How to convert a pdf file to docx. Is there a way of doing this using python? I’ve saw some pages that allow user to upload PDF and returns a DOC file, like PdfToWord Thanks in advance Asked By: AlvaroAV || Source Answers: This is difficult because PDFs are …

Total answers: 6

How do I extract data from a doc/docx file using Python

How do I extract data from a doc/docx file using Python Question: I know there are similar questions out there, but I couldn’t find something that would answer my prayers. What I need is a way to access certain data from MS-Word files and save it in an XML file. Reading up on python-docx did …

Total answers: 5

Python: Create a "Table Of Contents" with python-docx/lxml

Python: Create a "Table Of Contents" with python-docx/lxml Question: I’m trying to automate the creation of .docx files (WordML) with the help of python-docx (https://github.com/mikemaccana/python-docx). My current script creates the ToC manually with following loop: for chapter in myChapters: body.append(paragraph(chapter.text, style=’ListNumber’)) Does anyone know of a way to use the “word built-in” ToC-function, which adds …

Total answers: 4

How can I search a word in a Word 2007 .docx file?

How can I search a word in a Word 2007 .docx file? Question: I’d like to search a Word 2007 file (.docx) for a text string, e.g., “some special phrase” that could/would be found from a search within Word. Is there a way from Python to see the text? I have no interest in formatting …

Total answers: 10