A js wrapper to pdfinfo