fixed declaration of printPDF()