Belval / pdf2image

A python module that wraps the pdftoppm utility to convert PDF to PIL Image object
MIT License
1.66k stars 195 forks source link

Invalid SOS parameters for sequential JPEG #263

Open gaurav82692 opened 1 year ago

gaurav82692 commented 1 year ago

Hi I'm using pdf2image import convert_from_path I'm converting 13k using loop but while converting from pdf to image, I,m getting Invalid SOS parameters for sequential JPEG on windows machine, due to which my script being stopped, how to handle or catch these cases and move to other file conversion.

images=convert_from_path(filename,500,poppler_path=r'C:\Program Files (x86)\poppler-0.68.0_x86\poppler-0.68.0\bin')