Answers for "poppler not in path"

0

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 Files\poppler-0.68.0\bin'
#(for eg.) like below

from pdf2image import convert_from_path
images = convert_from_path("mypdf.pdf", 500,poppler_path=r'C:\Program Files\poppler-0.68.0\bin')
for i, image in enumerate(images):
    fname = 'image'+str(i)+'.png'
    image.save(fname, "PNG")
Posted by: Guest on September-06-2021

Browse Popular Code Answers by Language