pydocx icon indicating copy to clipboard operation
pydocx copied to clipboard

An extendable docx file format parser and converter

Results 57 pydocx issues
Sort by recently updated
recently updated
newest added

module 'collections' has no attribute 'Hashable'

Hi! Encountering a memory leak when call PyDocX.to_html, is not the right way to use it ? test example: ``` # python3.6 # PyDocX == 0.9.10 def test_to_html(): tracemalloc.start() snapshot1...

karthik@cosmic:/tmp$ pydocx --html hello1.docx hello1.html Traceback (most recent call last): File "/usr/local/bin/pydocx", line 8, in sys.exit(cli()) File "/usr/local/lib/python3.10/dist-packages/pydocx/__main__.py", line 49, in cli sys.exit(main(args=sys.argv[1:]) or 0) File "/usr/local/lib/python3.10/dist-packages/pydocx/__main__.py", line 44, in...

Hello, The attached document makes the parser crashing. ... File "C:\Users\xxxxx\Anaconda3\lib\site-packages\pydocx\export\base.py", line 524, in export_simple_field parsed_instr = simple_field.parse_instr() File "C:\Users\xxxxx\Anaconda3\lib\site-packages\pydocx\openxml\wordprocessing\simple_field.py", line 41, in parse_instr m = self._parse_instr_into_field_type_and_arg_string() File "C:\Users\xxxxx\Anaconda3\lib\site-packages\pydocx\openxml\wordprocessing\simple_field.py", line...

from docx import Document document = Document("to_hide.docx") Table = document.tables[0] par = Table.rows[0].cells[1].paragraphs[0] ### hidden - only one cell counter=0 for runs in par.runs: counter += 1 runs.font.hidden = True...

I found some old docx is mhtml format.Got html from convert mhtml.

Hi! How can I convert space with underline to html? If there are words, the underline is normal.

self.instr may be empty.An error will be reported during execute re.match function

WMF image results in a blank data URI Sample file here: https://dl.dropboxusercontent.com/u/7000934/PyDocX/WMF%20Image%20Test.docx

It would be extremely helpful to me if it were possible to export only the content of with no or tags. I intend to pass the document on to further...