Update pdf_generator.class.php