title: PDF to JPEG conversion using Ghostscript
body: <p>I'm using Ghostscript to convert my PDF files to JPEGs with Ghostscript which works great.</p>
  
  <p>For my output images I'm using <code>%03d</code> in the file name, so the file names come out <code>001</code>, <code>002</code> ... and so on according to the page numbers.</p>
  
  <p>But i want in some case the numbers to start from an higher number.</p>
  
  <p>For example I process a file with two pages so the output images are <code>page001.jpg</code>, <code>page002.jpg</code></p>
  
  <p>Now I want to process another PDF and instead of replacing those files, I want to create <code>page003.jpg</code>, <code>page004.jpg</code>.</p>
  
  <p>How can this be done?</p>
  
  <p>This is my full command line I'm using now:</p>
  
  <pre><code>'C:\gs\gs9.14\bin \gswin64c -dNOPAUSE -sDEVICE=png16m \
    -sOutputFile=page-%03d.jpg -r100x100 -q' . $pdf_file. '-c quit'
  </code></pre>