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 Sun Aug 03, 2025 3:56 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
Total posts 10189 • Total topics 2867 • Total members 2097