from pdf2image import convert_from_path
PDF_PATH = './hogehoge.pdf'
image = convert_from_path(PDF_PATH, 300) #300=DPI
image[0].save("out.png", 'png')
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme