pip install pdf2image brew install poppler # mac only. For Linux must be `apt install poppler-utils`, but i did not try from pdf2image import convert_from_path pages = convert_from_path('File.pdf', 500) # 500 – dpi # output is a list of PIL images (`<PIL.PpmImagePlugin.PpmImageFile image mode=RGB size=4250x5500`)#The pdf2image library can be used #You can install it simply using, pip install pdf2image #Once installed you can use following code to get images. from pdf2image import convert_from_path pages = convert_from_path('pdf_file', 500) #Saving pages in jpeg format for page in pages: page.save('out.jpg', 'JPEG')