title: PDF Handling in Java
body: <p>I have created a program that should one day become a <strong>PDF editor</strong></p>
  
  <p>It's purpose will be saving GUI's <strong>textual</strong> content to the PDF, and loading it from it. GUI resembles text editor, but it only has certain fields(JTextAreas, actually).</p>
  
  <p>It can look like this (this is only one page, it can have many more, also upper and lower margins are cut out of the picture) It should actually resemble A4 in pixel size.</p>
  
  <p><img src="https://i.stack.imgur.com/Gefwn.png" alt="GUI picture"></p>
  
  <p>I have looked around for a bit for PDF libraries and found out that iText could suit my PDF creating needs, however, if I understood it correct, it retirevs text from a whole page as a string which won't work for me, because I will need to detect diferent fields/paragaphs/orsomething to be able to load them back into the program.</p>
  
  <p>Now, I'm a bit lazy, but I don't want to spend hours going trough numerus PDF libraries just to find out that they won't work for me.</p>
  
  <p>Instead, I'm asking someone with a bit more Java PDF handling experience to recommend me one according to my needs.</p>
  
  <p>Or maybe recommend me how to add invisible parts to PDF which will help my program to determine where is it exactly situated insied a PDF file...</p>
  
  <p>Just to be clear (I formed my question wrong before), only thing I need to put in my PDF is text, and that's all I need to later be able to get out. My program should be able to read PDF's which he created himself...</p>
  
  <p>Also, because of the designated use of files created with this program, they need to be in the PDF format.</p>