Can't use toolbin helper/prologue files with Ghostscript 10.xxx

52 Views Asked by At

I try to use helper files from ./gs/lib or ./gs/toolbin like pdf_info.ps or extractICCProfiles.ps. The result always contains this response:

Current allocation mode is local
Last OS error: Permission denied

Also when I add -dNOSAVER - in order to follow regulation for gs older than 9.5 I can't get it to work. Please see 2 samples below for details.

Sample 1:

gs -q -dNODISPLAY extractICCprofiles.ps -c "(ICC_) (test.pdf) extractICCprofiles quit"                            
Error: /invalidfileaccess in --file--
Operand stack:
   (test.pdf)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:770/1123(ro)(G)--   --dict:0/20(G)--   --dict:81/200(L)--
Current allocation mode is local
Last OS error: Permission denied

Sample 2:

gs -q -dNOSAVER -dNODISPLAY extractICCprofiles.ps -c "(ICC_) (test.pdf) extractICCprofiles quit"
Error: /invalidfileaccess in --file--
Operand stack:
   (test.pdf)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:771/1123(ro)(G)--   --dict:0/20(G)--   --dict:81/200(L)--
Current allocation mode is local
Last OS error: Permission denied
GPL Ghostscript 10.01.2: Unrecoverable error, exit code 1
0

There are 0 best solutions below