Hello! Can anyone give me some sample code to convert html to docx. I have found some links over here but all of them point to github and i dont have access over there for some reasons. What i found until now that i think may be the right way is this row:
wordMLPackage.getMainDocumentPart().getContent().addAll(XHTMLImporter.convert( htmlText, null,wordMLPackage) );
if i understand right htmlText is a string which contains the html code. I added docx4j-ImportXHTML-3.2.1.jar and ...