improve pdfToTiff