java - Docx to html conversion using docx4j v3 -
hi trying convert docx html using docx4j v3.below code. file initialfile = new file("input/table_1.docx"); inputstream = new fileinputstream(initialfile); wordprocessingmlpackage wordmlpackage = docx4j.load(is); htmlsettings htmlsettings = docx4j.createhtmlsettings(); htmlsettings.setwmlpackage(wordmlpackage); outputstream out = new fileoutputstream("input/table_1.html"); docx4j.tohtml(htmlsettings, out, docx4j.flag_export_prefer_xsl); string result = ((bytearrayoutputstream)out).tostring(); system.out.println(result); this error getting. have used mvn resolve jar dependency.can on error: exception in thread "main" org.docx4j.openpackaging.exceptions.docx4jexception: couldn't load xml stream @ org.docx4j.openpackaging.packages.opcpackage.load(opcpackage.java:504) @ org.docx4j.openpackaging.packages.opcpackage.load(opcpackage.java:302) @ org.docx4j.openpackaging.packages.wordprocessing...