Docx to HTML conversion using aspose.html Java


Hi. I’m new to aspose and I would like to know if we can convert Docx to HTML using Aspose.HTML. Also, can you provide me a link to source code if such conversion is possible?



Thank you for contacting support.

We would like to share with you that you can convert a DOCX file to an HTML file with Aspose.Words for Java API by using below code snippet in your environment.

Document doc = new Document(dataDir + "Document.docx");
HtmlSaveOptions options = new HtmlSaveOptions();
dataDir = dataDir + "SaveAsHtml_out.html";, options);

You may visit Aspose.Words for Java Documentation to learn more about working with DOCX and other supported file formats. In case you need any assistance related to Aspose.Words API, please create a post over Aspose.Words Forum while mentioning all the details so that we may help you out accordingly.