Support older pdfminer API