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

'fitplot' broken #1542

Closed
michaelrsweet opened this issue Apr 6, 2006 · 2 comments
Closed

'fitplot' broken #1542

michaelrsweet opened this issue Apr 6, 2006 · 2 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2rc1
CUPS.org User: twaugh.redhat

Using the fitplot=true option causes incorrect PS output. For example, the attached 'print.ps' is from Mozilla, looking at cups.org. 'lpr -ofitplot=true print.ps' fails for me, and in the logs I see:

Error: /undefined in pagelevel
Operand stack:

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 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1138/1686(ro)(G)-- --dict:1/20(G)-- --dict:93/200(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.01: Unrecoverable error, exit code 1

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

OK, the problem is cause by how they are using the Begin/EndPageSetup comments - they basically are saving the graphics state and scaling the whole page, not doing Begin/EndFeature comments and commands.

Unfortunately, this is something that Adobe has documented as "good practice", even though it is a MAJOR pain to work around...

I'll see what we can come up with for a fix...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Please note: Mozilla's output also contains a setpagedevice command without a corresponding Begin/EndFeature pair, which might cause problems with some printers...

Please file a bug upstream with them to add:

%%BeginFeature: *PageSize sizename
... existing code
%%EndFeature: *PageSize

"sizename" would be "Letter", "A4", etc.

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