I am working on a project which requires manipulation of MS word document using Java. I have found that Apache POI
is the best API to do that.
But I could not properly understand the use of POI from this link . Also, I was not able to SVN check-out the source from here.
Can anyone please help me with using POI or some sample code.
Thanks.
EDIT: Can I edit an existing Word template document and replace the place holders with the text I want using POI?
1) You can download POI as a .zip or .tar.gz file (WinZip should understand both formats) here.
2) The Quick Guide is here.
3) This Quick Guide points to the unit tests, which make for excellent sample code.
4) Here's another good howto (it's for Excel, but applicable to Word).
You need busy developer's guide .
Apache POI actually contains many APIs, each API provide ability to operate particular file. Manual of each API can be found at Apache POI, you can see a list of API at left which link to the individual pages. You can find quick guide in it.
Last, you can just download source distribution at download page.
Try this site: http://www.roseindia.net/java/poi/
It contains code samples.