PDF generation works