updated printPDF definition