added support for new pdfparser