Skip to content

survtur/extract_images_from_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Extracts images from PDF as it is.

It will not recompress image if it is already compressed. But if it is plain, then saves it as .jpg.

Requirements

  • Python3.6+
  • PyPDF
  • PIL

Example

DIR_WITH_PDFS = "/home/user/Downloads/Untitled Folder"
SAVE_IMAGES_HERE =  "/home/user/Downloads/Untitled Folder/test"
ie = ImagesExtractor()
ie.extract_dir(DIR_WITH_PDFS, SAVE_IMAGES_HERE)

Credit

Based on this answer found at stackoverflow

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages