title: Create a PDF according to a given format using the iText library
body: <p>I'm working on small project in java, there I want to fetch the contents from a database and write them into a PDF file.</p>
  
  <p>I tried to googling and came up with <a href="https://itextpdf.com/" rel="noreferrer">iText Library</a>.  </p>
  
  <p>Can anyone guide to create a <strong>PDF</strong> that looks like the enclosed image <a href="https://i.stack.imgur.com/G9xtD.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/G9xtD.jpg" alt="computer generated invoice"></a></p>
  
  <p>PS: I'm pretty new to JAVA.and it's my first java project.</p>