This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The Java CookBook from O'Reilly has an example of producing the output as a servlet in a .pdf file with a basic add-on class, but doesn't use images. Basically you're going to need to use a third party API (unless you make it yourself). The book does mention a few third party API's that do include image support, but I don't have it in front of me right now, so there names escape me.