Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

poppler not in path

#1st of all Download Poppler from here here,Then extract it.
#In the code section just add poppler_path=r'C:Program Filespoppler-0.68.0in'
#(for eg.) like below

from pdf2image import convert_from_path
images = convert_from_path("mypdf.pdf", 500,poppler_path=r'C:Program Filespoppler-0.68.0in')
for i, image in enumerate(images):
    fname = 'image'+str(i)+'.png'
    image.save(fname, "PNG")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #poppler #path
ADD COMMENT
Topic
Name
4+1 =