[gs-devel] ps2pdf problems
Matthew O. Persico
persicom at acedsl.com
Sun May 19 15:52:09 PDT 2002
This is probably NOT where I want to post this, but I didn't see a general gs discussion list and I am not convinced this is a bug.
Anyway, I am trying to replace Adobe Distiller with ps2pdf, primarily because we have an old (3.0) version of Distiller and no one can figure out how to tell Distiller to include our specialized fonts in the pdfs it creates.
Anyway, we create mutiple PS files using 'C' code calling the old C-PSLIB from Barton Creek. We then roll them all up into one pdf file. We do this by creating the following ps file on the fly and running it through distiller:
/prun { /mysave save def
dup = flush
RunFile
clear cleardictstack
mysave restore
} def
(/uat/asset02/home/batcher/spool/10999/033102/f/40amc2085m.prn) prun
(/uat/asset02/home/batcher/spool/10999/033102/f/65amc2104m.prn) prun
(/uat/asset02/home/batcher/spool/10999/033102/f/90amc2126m.prn) prun
(/uat/asset02/home/batcher/spool/10999/033102/f/115amc2123m.prn) prun
(/uat/asset02/home/batcher/spool/10999/033102/f/135amc2108m.prn) prun
(/uat/asset02/home/batcher/spool/10999/033102/f/210amc2133m.prn) prun
(/uat/asset02/home/batcher/spool/10999/033102/f/230amc2127m.prn) prun
When we run this through distiller we get a big pdf with all the files. When we run ps2pdf, we get this:
$ ps2pdf test.ps gs.pdf
/uat/asset02/home/batcher/spool/10999/033102/f/40amc2085m.prn
Error: /undefined in RunFile
Operand stack:
(/uat/asset02/home/batcher/spool/10999/033102/f/40amc2085m.prn)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1034/1476(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)--
Current allocation mode is local
Current file position is 160
GNU Ghostscript 6.53: Unrecoverable error, exit code 1
Can anyone point out what obvious problem (except to me) I am having here?
Much obliged.
--
Matthew
More information about the gs-devel
mailing list