Try using jOpenDocument (http://www.jopendocument.org) or the ODF Toolkit (http://incubator.apache.org/odftoolkit/) to read in the OpenDocument files contents, then use OpenCSV and/or POI to write that back out to whichever file format you need.
There exists plenty of example code for both libraries so try looking at it. Without knowing your specific use case the only code anyone could give you would be the most basic example possible, which probably doesn't meet your requirements anyway. For example how would you want to handles images or blocks of text in an ODT when saved to an XLS or CSV, especially since CSV can't contain images? What you're trying to do is largely possible, but you're going to have to do quite a bit of work yourself I'm afraid. The listed libraries only help you with reading/writing files in their respective supported formats, the code that translates the content from one format to the other and how you want it laid out you need to write yourself. >________________________________ > From: Sai Pavan Gadde <[email protected]> >To: POI Users List <[email protected]> >Sent: Tuesday, April 1, 2014 10:13 AM >Subject: Conversion for Open Office to other files > > >Hi Everyone, > >Is there any possibility of converting Open Office files like odt,odi, ods >to csv or xls, or xlsx by using POI tool, > >Give me the way, also coding if you have > >-- >*THANKS & REGARDS,* >G.SAI PAVAN, >CCDH4 CERTIFIED, >Ph: 8121914494, >*www.bigdatatrendz.com <http://www.bigdatatrendz.com>* >linkedin profile <http://in.linkedin.com/pub/gadde-sai-pavan/38/44b/453/> >HYDERABAD. > > >
