ImageMagick Split PDF Output File Name Always Starts at Zero

ghostscript, imagemagick, pdf, range

Solution

I ended up solving this by using the `-scene #` command line parameter.

This causes the output to begin at the desired index. For posterity:

convert file.pdf -scene 5 file-%d.png

Problem

I run the following command to split a PDF in ImageMagick: convert file.pdf[5-10] file.png The resulting output files are always suffixed starting with zero. That is: file-0.png, file-1.png, file-2.png... Any ideas what I might be doing wrong? The documentation states that the files should be suffixed starting at 5, matching the page numbers of the pages extracted.

Original source