Skip to content

Tag: ms-word

Getting word count of doc/docx files in R

I have a stream of doc/docx documents that I need to get the word count of. The procedure so far is to manually open the document and write down the word count offered by MS Word itself, and I am trying to automate it using R. This is what I tried: Unfortunately, wordCount is NOT what MS Word suggests. For

Python – Send item to next page in Word

I am trying to send text to the next page in a .docx file using Python. So far, I have written a some code that will locate a certain word in a .docx file (using python-docx): Now I want to send each occurrence of “Hello” to a new page so that each page in my Word document starts with the

Python & MS Word: Convert .doc to .docx?

I found several questions that were similar to mine, but none of the answers came close to what I need. Specifications: I’m working with Python 3 and do not have MS Word. My programming machine is running OS X and cloud machine is linux/ubuntu too. I’m using python-docx to extract values from a .d…