Answers for "python convert pdf to images + pdf2img"

0

python pdf to img

# import module
from pdf2image import convert_from_path
 
 
# Store Pdf with convert_from_path function
images = convert_from_path('example.pdf')
 
for i in range(len(images)):
   
      # Save pages as images in the pdf
    images[i].save('page'+ str(i) +'.jpg', 'JPEG')
Posted by: Guest on July-18-2021

Code answers related to "python convert pdf to images + pdf2img"

Python Answers by Framework

Browse Popular Code Answers by Language