Last active
December 17, 2015 19:30
-
-
Save superpixel/5661307 to your computer and use it in GitHub Desktop.
How to extract Images out of PDF Files with some command line tools.
This file contains hidden or 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
Install 'xpdf' (for 'pdfimages') and 'imagemagick' (for 'mogrify'). | |
Extract images with: | |
pdfimages -j file.pdf ~/output/ | |
Batch Convert PPM to PNG with: | |
mogrify -format png *.ppm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment