Problem with the PDF generation