Created
June 5, 2020 18:10
-
-
Save go4Mor4/246b56f20f564dac41a8f993f1819aed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pdf_to_images(PATH_PDF, DIR_OUTPUT): | |
images, count = convert_from_path(PATH_PDF, poppler_path= r'C:\Program Files (x86)\poppler-0.68.0\bin'), 1 | |
for image in images: | |
image.save(rf'{DIR_OUTPUT}teste ({count}).png', 'PNG') | |
count += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment