javahtmlmxmldocx

Convert HTML/MXML file to Word doc programmatically in Java


I would like to convert either an HTML or MXML file document to Microsoft .doc and/or .docx format.

Please provide an example for doing this?


Solution

  • I've found that by far the best (free) option to do conversions like this is to use the OpenOffice API. It has a very robust conversion facility. It's a bit of a pain to initially get working because of how abstract the API is, but once you do, it's powerful. This API wrapper helps to simplify it somewhat.