bug fix in PrintPDF()