Bulk Export Images to JPG from PDF - bash one liner
Sometimes I forget what power there is in free software. I put this quickie together the other day. Just be aware that it won’t handle any spaces in the PDF filename.
for i in *.pdf;do pdfimages $i ${i%.*};done && for i in *.ppm;do ppmtojpeg $i >> ${i%.*}.jpg;done; rm -f *.ppm
images are exported as
About this entry
You’re currently reading “Bulk Export Images to JPG from PDF - bash one liner,” an entry on opensourcetutor.com
- Published:
- 19.10.08 / 5pm
- Category:
- Bash, Linux Administration, Open Source
- Tags:
- No Tags
- Related Posts:
- No Related Posts
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]