Skip to content

c4arl0s/extract-images-from-pdf-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExtractImagesFromPdfFilesBatchScript

It extract Images From a bunch of Pdf Files in the current directory. It uses pdftocairo program.

Dependencies for macOS

brew install poppler

Code

#!/bin/bash
# extract images from a pdf file

find . -name "*.pdf" -type f | sort -n -r | while read pdfFileName    
do
    echo "Creating image directory for this pdf File"
    mkdir ${pdfFileName}.images
    pdftocairo -jpeg $pdfFileName ./${pdfFileName}.images
    mv *.jpg ${pdfFileName}.images
done

About

Extract Images From Pdf Files Batch Script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages