Red Hat Bugzilla – Bug 115741
cups doesn't obey paper-size options to lp
Last modified: 2007-04-18 13:03:05 EDT
I have a PostScript file which is supposed to be printed on legal
paper. It's very small, so I'll attach it. It doesn't have the
correct setpagedevice command in it, for reasons I've already reported
in another bug (about psutils). I wanted to get the printer to print
it properly anyway, so I did this:
lp -d lj1100-draft -o PageSize=Legal -o PageRegion=Legal -o
ImageableArea=Legal -o PaperDimension=Legal foo.ps
It didn't work. Despite all those options attempting to tell CUPS to
tell the printer to print on legal paper, it still printed on letter
This may actually be a foomatic bug -- perhaps foomatic needs to
generate PPD files which contain the -sPAPERSIZE gs option but it doesn't.
When I printed the same file directly with gs as follows, it worked:
gs -sDEVICE=ljet4 -sPAPERSIZE=legal -sOutputFile=- -dNOPAUSE -dSAFER
-q - < foo.nup |lp -oraw -dlj1100-draft
Created attachment 97690 [details]
PostScript file which won't print on legal paper when lp is told it should
Not sure if those options are meant to apply to PostScript jobs, or if
they are just there for the filters that create PostScript from other
'Red Hat Raw Hide' refers to the development tree for Red Hat Linux.
Red Hat Linux is no longer supported by Red Hat, Inc. If you are still
running Red Hat Linux, you are strongly advised to upgrade to a
current Fedora Core release or Red Hat Enterprise Linux or comparable.
Some information on which option may be right for you is available at
Red Hat apologizes that these issues were not resolved in a more
timely manner. However, we do want to make sure that important
don't slip through the cracks. If these issues are still present
in a current release, such as Fedora Core 5, please move these
bugs to that product and version. Note that any remaining Red Hat
Raw Hide bugs will be closed as 'CANTFIX' on September 30, 2006.
Thanks again for your help.
This is no longer an issue in cups-1.2.1-12.