tags:

views:

284

answers:

2

I need to write a java application which can merge docx files. Any suggestions?

+1  A: 

It sure looks like POI can work with docx files. Are you trying to figure out how to merge them?

http://stackoverflow.com/questions/1492738/how-to-extract-plain-text-from-a-docx-file-using-the-new-ooxml-support-in-apache

Matt Ball
+1  A: 

Apache POI XWPF can do it, but it is currently dead. The following Java API's are available as well to handle OpenXML MS Word documents with Java:

There was one more, but I don't recall the name anymore.

As to your functional requirement: merging two documents is technically tricky to achieve the result as the enduser would expect. Most API's won't allow that. You'll need to extract the desired information from two documents and then create one new document based on this information yourself.

BalusC