5

I need to create a lot of old .doc files (MS word 97) and I'm wondering if there is any way to do in Python 3. I've been researching around but all I can find are libraries for the newer .docx files or playing with the OpenOffice API.

The output files would be just a .doc file with specific formatting and some tables with text inside the cells. No images or fancy stuff needed, but I hesitate on installing external programs like OpenOffice because this script will need to run on a few different computers. So I'm wondering if there is just a library that I can import.

I accept suggestions for other programming languages as well, but Python would be perfect.

Saelyth
  • 1,694
  • 2
  • 25
  • 42
  • 1
    Possible duplicate of [Is it possible to edit doc files with Python?](https://stackoverflow.com/questions/4226824/is-it-possible-to-edit-doc-files-with-python) – Jay Shankar Gupta Feb 20 '18 at 11:57
  • Possible duplicate of [html to .doc converter in Python?](https://stackoverflow.com/questions/4226095/html-to-doc-converter-in-python) – ozahorulia Feb 20 '18 at 11:58

1 Answers1

5

yes, try http://python-docx.readthedocs.io/en/latest/

to install:

pip install python-docx