About 7,610,000 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. 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.

  4. Newest 'python-docx' Questions - Stack Overflow

    Nov 19, 2025 · I'm trying to write a document using python-docx library. I'm adding some simple text with and then I add page_break after each paragraph. Later on, I save and open the same file again. The …

  5. 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 …

  6. 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 …

  7. Read Docx files via python - Stack Overflow

    Mar 27, 2015 · Does anyone know a python library to read docx files? I have a word document that I am trying to read data from.

  8. ms word - python-docx restart list numbering - Stack Overflow

    Jun 28, 2024 · I am using python-docx and I am able to generate number lists. How do I have the numbers restart for those lists? I want the lists to look like this. List 1 List 1 Item 1 List 1 Item 2 List 1 …

  9. Read .doc file with python - Stack Overflow

    Mar 15, 2016 · You can use python-docx2txt library to read text from Microsoft Word documents. It is an improvement over python-docx library as it can, in addition, extract text from links, headers and footers.

  10. List of availables styles for python-docx table - Stack Overflow

    Feb 10, 2024 · Is there a way to display all the available table styles when working with python-docx ? In the example below i'm using the 'Table Grid' style but I would like to explore more styles. from docx …