Error in Converting PDF to PostScript with GhostScript, Access is denied Unable to open command line file _.at

Joel Martinez picture Joel Martinez · Nov 10, 2009 · Viewed 43.4k times · Source

I installed ghostscript and updated the appropriate path variables ... however, I'm getting an error when I try to execute this command:

C:\PROGRA~1\gs\gs8.64\lib>pdf2ps mydocument.pdf mydocument.ps
Access is denied.
Unable to open command line file _.at

Is this the right command? Did I miss some configuration or path setting? Otherwise, is there a sane method of doing this conversion?

Answer

Douglas Anderson picture Douglas Anderson · Nov 15, 2009

Access is denied suggest something to do with access to paths etc. I'd suggest rechecking the folder permission (although I'm sure you've done that). Also, you might want to try running the gswin32c.exe instead of the pdf2ps to see if you still get the error, you might get something a little more specific.

gswin32c.exe ^
  -dNOPAUSE ^ 
  -dBATCH ^
  -sDEVICE=pswrite ^
  -sOutputFile=mydocument.ps ^
   mydocument.pdf