You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing a situation where pydocx.to_html behaves indifferently on a same .doc file which is converted to a .docx file.
Scenario 1 : .doc file is converted to .docx file using libreoffice in linux(saving as Microsoft word 2007/2010/2013 XML) - works fine.
Scenario 2 : .doc file is converted to .docx file using MS Office in windows - throws an error.
return re.match('^\s_([^\s]+)\s_(.*)$', self.instr)
File "/usr/lib/python2.7/re.py", line 137, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
Any pointers would be helpful.
regards,
Rajith
The text was updated successfully, but these errors were encountered:
winhamwr
changed the title
pydocx docx to html conversion errorTypeError: expected string or buffer when .doc is converted to .docx with MS Office in Windows
Jul 29, 2016
pydocx_html_windows_error.txt
Hi Guys,
I am facing a situation where pydocx.to_html behaves indifferently on a same .doc file which is converted to a .docx file.
Scenario 1 : .doc file is converted to .docx file using libreoffice in linux(saving as Microsoft word 2007/2010/2013 XML) - works fine.
Scenario 2 : .doc file is converted to .docx file using MS Office in windows - throws an error.
return re.match('^\s_([^\s]+)\s_(.*)$', self.instr)
File "/usr/lib/python2.7/re.py", line 137, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
Any pointers would be helpful.
regards,
Rajith
The text was updated successfully, but these errors were encountered: