Mac OS 10.14.4
java version “1.8.0_181”
Java™ SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)
Aspose: aspose-words-19.7
Document document = new Document("html path ");
OoxmlSaveOptions saveOptions = new OoxmlSaveOptions(SaveFormat.DOCX) ;
if (fileOutputStream != null) {
document.save("docx output file ", saveOptions);
}