Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: /rangecheck in .installpagedevice #93

Closed
michaelrsweet opened this issue May 14, 2003 · 1 comment
Closed

Error: /rangecheck in .installpagedevice #93

michaelrsweet opened this issue May 14, 2003 · 1 comment

Comments

@michaelrsweet
Copy link
Collaborator

Version: 7.05.4
CUPS.org User: dicks.altium

I have a Postscript file that causes the following ghostscript error in the pstoraster stage:

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

This is a large 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

I can reproduce the problem with:

gs-esp -dNOPAUSE -sDEVICE=cups -sOUTPUTFILE=/dev/null foo.ps

I can view the file with "gs", and I can print it on a Postscript printer. The problem disappears when I remove the statusdict line or the skiphead line. Is this a problem in the cups driver, or is the Postscript invalid?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

setpageparams is a Level 1 command and is no longer supported. You should be using setpagedevice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant