Are there any open source libraries that I can use?
for reading javax.imageio.ImageIO for writing pdf itext: http://itextpdf.com