Question: I have the need to create some pdf through java code, pdf templates are fixed and are very complex too. Each pdf represents a module and I have to fill it with informations I get from other sources in my application and finally create the complete pdf.

So, is there a library which, given a pdf, scans it and creats some java code which will eventually create it back? This way once I get the pdf template in java code I just have to edit it adding my informations and create it back.

Answer: 
You can check these 2 link it's have all information regarding PDF CRUD operation.

[How to read PDF files using Java?](https://stackoverflow.com/questions/4784825/how-to-read-pdf-files-using-java)

<http://mrbool.com/how-to-create-write-and-read-pdf-files-using-pdfone-and-java/27058>
`itext` is one of best approach for your need..
[itext API'S](http://itextpdf.com/api)