title: Page-wise JPEG conversion/export from PDF using Ghostscript on Windows
body: <p>I would like to use <strong>ghostscript</strong> to <strong>convert</strong> the <strong>pdf</strong> source into series of <strong>jpeg</strong> images. Everything works fine except:</p>
  
  <ul>
  <li>The format specifiers (%d) for .jpeg output file names are not working on
  Windows (I am using Windows 7 64bit), so I need to call gswin64c.exe as for every single page. </li>
  <li>The exported .jpeg files have white stripes around the page, while .pdf
  does not have anything there – can I get somehow rid of them?</li>
  </ul>
  
  <p>My command line:</p>
  
  <pre><code>gswin64c.exe \
     -dSAFER -dBATCH -dNOPAUSE \
     -sDEVICE=jpeg \
     -r350 \
     -dJPEGQ=100 \
     -dFirstPage=1 -dLastPage=1 \
     -sOutputFile=magazine-1.jpg \
       magazine.pdf
  </code></pre>