Bug 690376 - CUPS-specific -dNOMEDIAATTRS breaks setpagedevice
Summary: CUPS-specific -dNOMEDIAATTRS breaks setpagedevice
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: master
Hardware: All All
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 06:51 UTC by Alex Cherepanov
Modified: 2009-04-04 09:39 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cherepanov 2009-04-03 06:51:47 UTC
Ghostscript fails with /undefined in --setpagedevice-- when it runs
the following command
gs -dNOMEDIAATTRS -c '<< /PageSize [181.41732788085938 257.9527587890625]
/DeferredMediaSelection true /ImagingBBox null /ManualFeed false
/NumCopies 1 >> setpagedevice'

A similar error has been reported earlier in ESP Ghostscript.
http://www.velocityreviews.com/forums/t366343-cups-printing-to-pdf-writer-from-java-app-fails.html
Comment 1 Alex Cherepanov 2009-04-04 09:39:23 UTC
Revert initial /PolicyNotFount to 1. The previous value, 7, introduced by ESP
Ghostscript merger (rev. 8026) was non-standard and handled by Ghostscript
like 0. Fix '/undefined in --setpagedevice--' error in CUPS mode
(-dNOMEDIAATTRS) when setpagedevice request has unsupported keys.

The following patch is committed as a rev. 9616.
http://ghostscript.com/pipermail/gs-cvs/2009-April/009191.html