Error catching added to the PDF Generator

Try/Catch statement added to the PDFGenerator form