Pdf2Image library failing to read pdf signed using docusign

Viewed 1918

I'm trying to convert a pdf signed using docusign to image format. We are facing the error in convert_from_path method. Code and error are shown below

import pdf2image

data=pdf2image.convert_from_path('name.pdf')

PDFPageCountError: Unable to get page count. Syntax Error: Gen inside xref table too large (bigger than INT_MAX) Syntax Error: Couldn't find trailer dictionary Syntax Error: Invalid XRef entry Syntax Error: Invalid XRef entry Syntax Error: Top-level pages object is wrong type (null) Command Line Error: Wrong page range given: the first page (1) can not be after the last page (0).

2 Answers

This problem has to do with an older version of poppler. Upgrading to the latest version (21.03.0) solves the problem.

You will need to contact Pdf2Image for possible solution, it looks like upgrading should fix it

Related