Split PDF files

Another ghostscript trick to split a single PDF to multiple PDFs one for each page:

gs -sDEVICE=pdfwrite -dSAFER -o outname.%d.pdf input.pdf