fixed the PDF printing feature