Basic PDF generation working