About 51 results
Open links in new tab
  1. How to use python-docx to replace text in a Word document and save

    Jul 18, 2014 · The current version of python-docx does not have a search() function or a replace() function. These are requested fairly frequently, but an implementation for the general case is quite …

  2. How to extract text from an existing docx file using python-docx

    Aug 10, 2014 · 96 I'm trying to use python-docx module (pip install python-docx) but it seems to be very confusing as in github repo test sample they are using opendocx function but in readthedocs they are …

  3. ms word - how to create docx files with python - Stack Overflow

    Dec 23, 2015 · create a *.docx document with marker text where you want your headings, table cells, etc. Use lxml to find those markers and copy their parent elements (along with their formatting). Use …

  4. Set paragraph font in python-docx - Stack Overflow

    Jan 11, 2015 · Here is a full example using the latest version of python-docx (1.1.0). This allows you to create headings, paragraphs and footer and set fonts and font sizes independently.

  5. docx - How to access text box in a word document with Python?

    Feb 23, 2024 · I am using the Python docx library to do this task till now. I also used the underlying lxml package to take care of the pictures and shapes, I am sharing a code snippet that takes care of …

  6. How does "runs" works in python docx - Stack Overflow

    Nov 17, 2021 · But Docx runs are very easy to break, and when broken they can hide it very well. Just having two texts the same format isn't necessarily enough to make it the same run. They don't …

  7. Read Docx files via python - Stack Overflow

    Apr 11, 2018 · Does anyone know a python library to read docx files? I have a word document that I am trying to read data from.

  8. how can i import Document in python module docx? [duplicate]

    Nov 14, 2021 · The same python you use to install python-docx should be the same python you use to run your app/script: python -m pip install python-docx. Or better, use a virtual environment, then …

  9. Convert .doc files to pdf using python COM interface to Microsoft Word

    How can I convert a Word document in PDF by calling the Word COM interface from Python?

  10. python - How to create table from function and add to docx document ...

    Dec 31, 2022 · How to create table from function and add to docx document Asked 3 years, 1 month ago Modified 10 months ago Viewed 6k times