title: Create Pdf from a database using a query like 'Select * from some_table where some condition'
body: <p>I have a requirement where i have to create pdf from database. There are almost 12 such requirement. </p>
  
  <p>All them have the same aim though. That is to show the <code>ResultSet</code> returned from my <code>pstmt.executeQuery()</code>into some kind of table.</p>
  
  <p>All i know right now is that i will have to use iText jars to accomplish this. Can someone can guide me how to go about doing this ?</p>
  
  <p>I want to make something like this</p>
  
  <pre><code>public static void createPdf(String query){
      //Code to create Pdf Table
  } 
  </code></pre>
  
  <p>Thank you !</p>