Can anybody let me know how you can create doc files using java? I understand, there is a POI library, however it appears enjoy it can help to save only simple documents. Read anything you want, however, you can't save everything again. Or might be i skipped something? How do i save whole document with pictures, tables and designs?
Docmosis allows you need to do loads of styling easily through the template. Uses OpenOffice and Java to complete the job. Its free and liberated to distribute.
It ain't cheap, but you could attempt Aspose.Words. It'll fit everything in you condition above and much more.
JODConverter will help you to convert many different document formats