I want to get the data of ODT file in java. I have two approach for that purpose.
1). I get the extract data from ODT file and create a new document
2). Get a print preview of odt document and add it to PDF document as a image like this
Can you please suggest which approach is better and how should I do it?
Finally I used third approach. While searching for my answers I stumbled upon a JAVA library for my Purpose XdocReport
. I used there ODT and DOCX converters to convert ODT/DOCX to PDF format.