JWord > Tutorial > Save document as HTML

The following example shows you how to save a Word document as an HTML file. You can use the saveAsHtml method to convert a document to HTML format.

The following example shows you how to open an existing Word document and save it as HTML. You can also use the getHtml method to get the HTML representation as a string.

Need help? Ask our developers: