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

    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 tricky and it hasn't …

  2. 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.

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

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

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

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

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

  10. How do I extract data from a doc/docx file using Python

    Reading up on python-docx did not help, as it only seems to allow one to write into word documents, rather than read. To present my task exactly (or how i chose to approach my task): I would like to …