I'm looking for java libraries that read and write MS Word Document. What I have to do is:
- read a template file, .dot or .doc, and fill it with some data read from DB
- take data from another Word document and merging that with the file described above, preserving paragraphs formats
users may make updates to the file.
I've searched and found POI Apache and UNO OpenOffice. The first one can easily read a template and replace any placeholders with my own data from DB. I didn't found anything about merging two, or more, documents. OpenOffice UNO looks more stable but complex too. Furthermore I'm not sure that it has the ability to merge documents..
We are looking the right direction?
Another solution i've thought was to convert doc file to docx. In that way I found more libraries that can help us merging documents. But how can I do that?
Thanks!