I'm getting an error when the xhtml img tag has height and width of the image.
I get this in docx4j2.8.1 and 3.0.0. After reading the comment on http://stackoverflow.com/questions/15659076/does-docx4j-convert-xhtml-to-docx-in-memory I strip out the image height and width and it works fine.
org.docx4j.org.xhtmlrenderer.load INFO:: Loaded document in ~28ms
org.docx4j.org.xhtmlrenderer.load INFO:: TIME: parse stylesheets 114ms
org.docx4j.org.xhtmlrenderer.match INFO:: media = print
org.docx4j.org.xhtmlrenderer.match INFO:: Matcher created with 128 selectors
Exception in thread "http-bio-8443-exec-5" java.lang.OutOfMemoryError: Java heap space
at ...

News of Plutext