Category "python-docx"

Python docx2pdf AttributeError: Open.SaveAs

I am trying to convert a docx file to pdf using the docx2pdf library, using the following code: from docx2pdf import convert convert("generated.docx") As writ

Why Does a Strange File Shows Up in Directory When Using os.walk()?

The project is written in Pycharm on Windows 10. I wrote a program that grabs .docx files from a directory and searches for information. At the end of the l

How to replace a word in a Word document and change its font and color using python?

I want to replace a word in a .docx file and change the format of the same word. Currently, the word is highlighted in the document, I am able to replace the wo