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

Comments

Projects
None yet
1 participant
@michaelrsweet
Collaborator

michaelrsweet commented Apr 6, 2006

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

This comment has been minimized.

Show comment
Hide comment
@michaelrsweet

michaelrsweet Apr 7, 2006

Collaborator

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...

Collaborator

michaelrsweet commented Apr 7, 2006

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

This comment has been minimized.

Show comment
Hide comment
@michaelrsweet

michaelrsweet Apr 7, 2006

Collaborator

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.

Collaborator

michaelrsweet commented Apr 7, 2006

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.

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

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