fix the changed API

pdfminer change its API, so I change your code.
Delete two line and change the comment.