Converting a PDF Document to a Series of Images
Sometimes we have a PDF document but want to convert it to a series of JPG or PNG images page-by-page. This can be done via Ghostscript. Here I provide the little Bash script pdf2imgs.sh, which wraps around Ghostscript and does this in the Linux terminal. It takes as parameters