Toolbox

Ghostscript recipes

Produce images for each page in a PDF file

gs -sDEVICE=jpeg -r300 -o page-%03d.jpg book.pdf

See a list of supported devices.

The equivalent ImageMagick command:

magick convert -density 300 book.pdf page-%03d.jpg

Further reading