Question: I found [these](http://www.medicalnerds.com/batch-converting-images-using-imagemagick/) [posts](http://www.medicalnerds.com/batch-converting-pdf-to-jpgjpeg-using-free-software/) on converting a PDF to JPG using ImageMagick. However, I have a 12 page PDF I want to convert into 12 separate high quality jpg files.

Looking for the least tedious way possible.

Thanks.

Answer: 
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.
Another option would be [sejda-console](http://www.sejda.org/shell-interface/tutorial/) (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](http://www.sejda.com/pdf-to-jpg) instead.