adding pdfImage: return the pdf document as an object