MS Word

Python-docx for MS Word

2021-01-12. Category & Tags: Python, MS Word, Pyhon-Docx, Docx

As the pyhon-docx does not want to provide a documentation (except some APIs) and the API doc web is really hard to browse and read, here are some small tips/demo tutorials to remember/avoid pits and falls.

Please note:

  • lib (0.8) provides only basic functions mainly for adding something (seems to be for test purpose). The main actions we do in a docx file should be done using MS API via this lib.
  • copy.deepcopy(.) should be used within the lib, not applying on MS objects.