This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Look back at the code you have written sure you aren't getting any exception because you wrapped your exception handling with "no-op". It's like crime in programming!!. If you print the exception you will get this
doesn't have any filename where you want the PDF to be written.