Use Aspose.Words for Java to convert documents from Word or any other supported formats to HTML, MHTML, or EPUB....using the ExportRoundtripInfor property. Saving the round-trip information...allows restoring document properties such as tabs, comments, headers...