Dick Streefland
2003-05-13 20:27:03 UTC
Today, I ran into a Postscript file that couldn't be printed with
CUPS. The job state was "aborted". In the log file, I found that there
was a Postscript error generated in the "pstoraster" stage. I can
reproduce the error with the following command:
gs-esp -dNOPAUSE -sDEVICE=cups -sOUTPUTFILE=/dev/null foo.ps
Error: /rangecheck in .installpagedevice
Operand stack:
--nostringval-- --dict:70/71(ro)(G)-- --nostringval--
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--
1 3 %oparray_pop --nostringval-- 1 3 %oparray_pop
--nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1048/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)--
Current allocation mode is local
Current file position is 233
ESP Ghostscript 7.05.4: Unrecoverable error, exit code 1
The Postscript file was a huge file produced by Interleaf, but I
reduced it to the following:
%!PS-Adobe-3.0
/inch { 72 mul } def
/skiphead save def
statusdict begin 8.824 inch 6.617 inch 0.000 inch 0 setpageparams end
/Times-Roman findfont 12 scalefont setfont
72 72 moveto (Hello, World!) show
showpage
skiphead restore
The problem disappears when I either remove the statusdict line or the
skiphead line. I can also display the file on screen with "gs". Is
this a problem of the cups driver, or is the Postscript invalid?
CUPS. The job state was "aborted". In the log file, I found that there
was a Postscript error generated in the "pstoraster" stage. I can
reproduce the error with the following command:
gs-esp -dNOPAUSE -sDEVICE=cups -sOUTPUTFILE=/dev/null foo.ps
Error: /rangecheck in .installpagedevice
Operand stack:
--nostringval-- --dict:70/71(ro)(G)-- --nostringval--
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--
1 3 %oparray_pop --nostringval-- 1 3 %oparray_pop
--nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1048/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)--
Current allocation mode is local
Current file position is 233
ESP Ghostscript 7.05.4: Unrecoverable error, exit code 1
The Postscript file was a huge file produced by Interleaf, but I
reduced it to the following:
%!PS-Adobe-3.0
/inch { 72 mul } def
/skiphead save def
statusdict begin 8.824 inch 6.617 inch 0.000 inch 0 setpageparams end
/Times-Roman findfont 12 scalefont setfont
72 72 moveto (Hello, World!) show
showpage
skiphead restore
The problem disappears when I either remove the statusdict line or the
skiphead line. I can also display the file on screen with "gs". Is
this a problem of the cups driver, or is the Postscript invalid?
--
Dick Streefland //// De Bilt
dick.streefland-qWit8jRvyhVmR6Xm/***@public.gmane.org (@ @) The Netherlands
------------------------------oOO--(_)--OOo------------------
Dick Streefland //// De Bilt
dick.streefland-qWit8jRvyhVmR6Xm/***@public.gmane.org (@ @) The Netherlands
------------------------------oOO--(_)--OOo------------------