title: Ghostscript rotate pdf page 180°
body: <p>Would like to rotate all pages of a pdf-file by 180°. DOS script of gs 9.16 returns no error but does not rotate or outputs a rotated file. Whats wrong?</p>
  
  <pre><code>"C:\Program Files\gs\gs9.16\bin\gswin64c" -dQUIET -dNOPAUSE -dBATCH  -c "&lt;&lt;/Orientation 2&gt;&gt; setpagedevice"  -sOutputFile="scan0076_rotated180.pdf" -sDEVICE=pdfwrite -f "scan0076.pdf"
  </code></pre>