Spaces:
Runtime error
Runtime error
File size: 396 Bytes
85d4c3b |
1 2 3 4 5 6 7 8 |
from pdf2image import convert_from_path
pdf = "C:\\Users\\tsande16\\PycharmProjects\\jscholar-rag\\raw-data\\edward-john-real-estate-program\\Abernathy_LibertyCenterVA_2002_Mueller.pdf"
images = convert_from_path(pdf, 500,poppler_path=r'C:\Program Files (x86)\poppler-24.02.0\Library\bin')
for i, image in enumerate(images):
fname = 'image'+str(i)+'.png'
image.save(fname, "PNG") |