I use the gs command in script in IRIX like this:
Code:
/usr/bin/gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite "-sOutputFile=409039000273.pdf" -c .setpdfwrite 409039000273.pdf
But while runnng the script it gives the error:
Code:
/usr/bin/gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=409039000273.pdf -c .setpdfwrite -f 409039000273.pdf
Error: /rangecheck in --.peekstring--
Operand stack:
--nostringval-- --nostringval-- ( )
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop --nostringval--
Dictionary stack:
--dict:1118/1686(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Artifex Ghostscript 8.50: Unrecoverable error, exit code 1