title: ERROR -12 closing pdfwrite device in ghost script
body: <p>In our module we are using the ghost script to compress PDF of higher size to lower size use the command</p>
  
  <pre><code>gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 
     -sOutputFile=output.pdf input.pdf
  </code></pre>
  
  <p>while converting this we are getting an error as shown below</p>
  
  <p>GPL Ghostscript 9.10: Unrecoverable error, exit code 1GPL Ghostscript 9.10: ERROR -12 closing pdfwrite device. See gs/psi/ierrors.h for code explanation</p>
  
  <p>More Information:  <br/>
  we are using Ubuntu 14.04 OS.</p>
  
  <p>Thanks,  <br/> Praveen Ravipati</p>