3
I would recommend GhostScript:
gs -sDEVICE=jpeg -r300x300 -dNOPAUSE -dBATCH -sOutputFile="image00.jpg" "input.pdf"
r
parameter is resolution
gs -sDEVICE=jpeggray -r300x300 -dNOPAUSE -dBATCH -sOutputFile="image00.jpg" "input.pdf"
This one is for grayscale output.
0
Another option would be sejda-console (requires Java):
sejda-console pdftojpeg --files input.pdf --resolution 300 --output /outputdirectory
Full documentation:
Usage: sejda-console pdftojpeg options
--files -f value... : pdf file to operate on: a single pdf file (EX. -f /tmp/file1.pdf or -f /tmp/password_protected_file2.pdf:secret123) (required)
[--help -h] : prints usage information. Can be used to detail options for a command '-h command' (optional)
--output -o value : output directory (required)
--outputPrefix -p value : prefix for the output files name (optional)
[--overwrite] : overwrite existing output file (optional)
[--resolution -r value] : resolution in dpi. Default is 72 (optional)
[--userZoom -z value] : zoom factor for the generated images (EX. 1.5 generates images with a 150% zoom factor). (optional)
If you just want to quickly convert a single file and privacy is not a concern you can always use their web app instead.
0
If you have a Mac this is very easy to do using Automator. You just need three actions:
Ask for finder items Render PDF pages as images Move finder items You can even select the color model, format (12 available), resolution and compression quality. Just to test it out, I converted a PDF file I have here with 207 pages:
Using "600dpi/RGB/best quality possible" it took an hour to convert to JPEG. Using "300dpi/RGB/60% quality" it took about 5 minutes to convert to JPEG. (My laptop have a Core 2 Duo 2.26Ghz)
Fantastic, thank you. The
-rnumber1xnumber2
option is kind of irrelevant for a jpg right? I could just use -r72 for 72dpi or -r150 for 150dpi right? – SteveLambert – 2014-06-24T22:56:42.8671Complementing the GhostScript answer, if you're a Windows user and have trouble using the gs command line (like me), download also the Ghostscript Studio. With just a few clicks you'll get the PDF divided quite easy! – erick2711 – 2015-09-04T20:55:55.890