hi @Jason ,
Can I convert xhtml to docx using XSLT through docx4j lib. If yes then can you please guide me how?
It is currently Wed Nov 27, 2024 4:44 pm
WordprocessingMLPackage wordMLPackage;
try {
wordMLPackage = WordprocessingMLPackage.load(template);
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
Document wmlDocumentEl = documentPart.getJaxbElement(); // failing on this line with several NumberFormatExceptions
Body body = wmlDocumentEl.getBody(); // wmlDocumentEl is null
MergeDoc returned an error:Source 1 is unsupported document - contains reference to NULL image
Total posts 10111 • Total topics 2842 • Total members 2074