Convert html to doc(x)

how to convert html file to doc(x) file?
This message was posted using Aspose.Live 2 Forum

Hi

Thanks for your request. You can use the following code to convert html to docx:

// Open HTML
Document doc = new Document("in.html");
// Save document as DOCX
doc.Save("out.docx");

Also, please see the following link to learn more:
https://docs.aspose.com/words/java/convert-a-document/
Best regards,