PDF generation all wired up