pdfminer compatibility for #30

I reverse-engineered the latest version of pdfminer so that we can work
with PDFs programatically.