Changed PDF generation to print module