I am trying to use ghostscript for its intended purpose, to interpret postscript files and output pngs. I would like a command that will convert a single specific page from a multi-page ps file to a single png. I have accomplished this in the case where the infile is a pdf file, but not when the infile is a ps.
This line will convert a ps into a file witch is comprised of the concatenated png files.
gs -dSAFER -dBATCH -sDEVICE=png256 -r96x96 -sOutputFile=out.png in.ps
This will take a single specific page from a pdf and convert it to a png.
gs -q -dSAFER -dBATCH -dFirstPage=2 -dLastPage=2 -sDEVICE=png256 -SOut=fileout.png in.pdf
Simply putting the dFirstPage=
flags in the post script input case does nothing. The output is the same as if the flags are not there.