title: Extract Data from ODT to PDF in Java
body: <p>I want to get the data of ODT file in java. I have two approach for that purpose.</p>
  
  <p>1). I get the extract data from ODT file and create a new document</p>
  
  <p>2). Get a print preview of odt document and add it to PDF document as a image like <a href="https://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hslf/examples/PPT2PNG.java" rel="nofollow noreferrer">this</a></p>
  
  <p>Can you please suggest which approach is better and how should I do it?</p>