You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from pdf2image import convert_from_path
|
|
|
|
dpi = 300
|
|
pdf_file = 'target.pdf'
|
|
pages = convert_from_path(pdf_file ,dpi )
|
|
|
|
page = pages[0]
|
|
page.save('page1.png'.format(0), 'PNG')
|