RTF, then POI is pretty much your only choice, unless you can introduce a step where you use a bit of Office automation to convert RTF into DOC. If you're working in an environment or for a customer who insists that your produced documents be.
I have almost no experience 'doing' RTF but it's probably a bit simpler than working with POI. But as Pascal says, documents with a not too exorbitant set of features are also supported by RTF. When the POI documentation says they are a work in progress, that reflects what will probably be an eternal state of trying to catch up to the (to us, undocumented) specification of Word.ĭocuments with a reasonably 'normal' set of used features are well supported by POI, whose interfaces and methods are reasonable and consistent but sometimes require a bit of work. Word has thousands of features: You can put numbered lists starting at #13 with negative indents into two joined cells of a table included in another table that is itself part of a bullet list. I've worked with POI before and it's certainly able to generate Word documents.