0

I need to replace a string in a word document with keeping the formatting of a word document. Trying to do with "Docx", however getting errors.

Thanks ain advance for your assistance

Yusif99
  • 23
  • 5
  • According to the help page, that package is a _A pure python-based utility to extract text and images from docx files._ It doesn't say anything about saving. [How to use python-docx to replace text in a Word document and save](https://stackoverflow.com/a/24813382) – Johnny Mopp Nov 19 '21 at 15:07

1 Answers1

0

You are maybe interested in python-docx. You are able to create Word files from Python, so it might fit your needs. Check python-docx.