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

YIF99
  • 51
  • 1
  • 8
  • 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) – 001 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.

  • Thank you for response. Edited my question based on that. Now trying to figure out with docx. – YIF99 Nov 19 '21 at 16:50