Page 1 of 1

read a .doc file

PostPosted: Thu Apr 18, 2013 3:51 am
by fachhoch
does docx4j allow reading a .doc file? I tried It complained org.docx4j.openpackaging.exceptions.Docx4JException: Couldn't get [Content_Types].xml from ZipFile

is there any way I can read the .doc files?

Re: read a .doc file

PostPosted: Thu Apr 18, 2013 9:20 am
by jason
No, it doesn't; legacy binary doc files are outside docx4j's scope/mission.

But see the main method at https://github.com/plutext/docx4j/blob/ ... n/Doc.java

See also the comments at http://stackoverflow.com/questions/1605 ... docx4j-api :

If you want to convert doc to docx, preserving a range of features, I'd suggest you use LibreOffice/OpenOffice via JODConverter.