User:Inductiveload/Scripts/PDF page converter

This script "bursts" a PDF into page images. The images will be created in the current directory.

Parameters
This bash script takes a single parameter: the file to be burst into images: ./pdf_conv.sh file.pdf

Internal parameters

 * CORES is the number of concurrent processes to spawn. It won't affect your interactive session if you use every core of your processor since it uses "nice", but there is no benefit to having more processes than cores.
 * EXT is the image extension to convert to.
 * DENSITY is the resolution with which Imagemagick converts the PDF. There is no benefit to exceeding the PDF resolution, but if you have a smaller value, quality will suffer.

Requirements

 * Pdftk for the interrogation of the number of pages
 * Imagemagick for the image conversion

Both of these are easily available from standard repos.