python-docx2txt
python-docx2txt copied to clipboard
A pure python based utility to extract text and images from docx files.
I have the following script: import docx2txt input_loc = input("Your docx location: ") output_loc = input("Output location: ") text = docx2txt.process(input_loc.split('"')[1], output_loc.split('"')[1]) Where the input is: Your docx location: "C:\Users\Public\Documents\DV_Test_Report_-_Test_Plan.docx"...
The setup.py or setup.cfg should contain info on the license ``` 'License :: OSI Approved :: MIT License', ``` https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/?highlight=license#classifiers
Hi, The text extraction process is happening perfectly, the break line/new line in the file is read and is maintained. I wanted to know is there a way that the...
The directory for storing pics does not exist, so it earlier threw an error. This has also been reported by someone in the issues. 
Left is original doc file, right is file I exported with following code ``` import docx2txt import os def write_file(name, content): with open(name, 'w') as file: file.write(content) files = os.listdir()...
Hello. I'll paste my code and error below. I'm not sure if this is an issue with my code or with the docx2txt module or zipfile.py. Please advise. import re...
Hello, This library is unable to read the .doc file, requesting you to kindly fix it. Regards, Bhushan Kapkar
When using the two argument version of the process function, I get the following error. Traceback (most recent call last): File "", line 1, in File "C:\Users\brick\AppData\Local\Programs\Python\Python38\lib\site-packages\docxpy\docxreader.py", line 133, in...
when docx2txt.process('file') is used, it does not eliminate strikethrough text. Is it possible to fix this? Note: python-docx does have a way to remove strikethrough text. example: for para in...
Currently `` just gets ignored by docx2txt. This change will replace it with a "-" instead.