debug in pdfdownloadclass