[cups.bugs] [HIGH] STR #1204: "pxlmono" driver does not respect the

Till Kamppeter till.kamppeter at gmx.net
Thu Jun 16 14:22:36 PDT 2005


[STR New]

I am with ESP GhostScript 8.15.x subversion revision 104. OS is Mandriva LE
2005, compiler is gcc 4.0.1.

The problem is that ESP GhostScript does not set the paper size in its
output when using the "pxlmono" driver and supplying the paper size by
embedding the PostScript command shown in the subject (setting the paper
size with "-sPAPERSIZE=..." works).

I exclude any mangling by "pstops" or "foomatic-rip" I have done the
following:

I have created a file named "tLetter.ps" by taking the CUPS test page
(testprint.ps) and adding the following setup section:

--------------------------------------------------------------------------
[...]
%%EndResource
%%EndProlog
%%BeginSetup
[{
%%BeginFeature: *PageRegion Letter
<</PageSize[612 792]/ImagingBBox null>>setpagedevice
%%EndFeature
} stopped cleartomark
%%EndSetup
%%Page: 1 1
gsave
[...]
------------------------------------------------------------------------

I have also created a file named "tA4.ps" by taking the CUPS test page
(testprint.ps) and adding the following setup section:

--------------------------------------------------------------------------
[...]
%%EndResource
%%EndProlog
%%BeginSetup
[{
%%BeginFeature: *PageRegion A4
<</PageSize[595 842]/ImagingBBox null>>setpagedevice
%%EndFeature
} stopped cleartomark
%%EndSetup
%%Page: 1 1
gsave
[...]
------------------------------------------------------------------------

Then I did the following two commands:

------------------------------------------------------------------------
cat tLetter.ps | gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=pxlmono
-r600x600 -sOutputFile=- - > tLetter.pxlps
------------------------------------------------------------------------

and

------------------------------------------------------------------------
cat tA4.ps | gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=pxlmono
-r600x600 -sOutputFile=- - > tA4.pxlps
------------------------------------------------------------------------

with the result that both tA4.pxlps and tLetter.pxlps are absolutely
identical (I have "diff"ed them).

Doing the same with the "ljet4" or "epl5900" driver gives always a
slightly bigger file for letter size, due to the little bigger area of
letter paper (about 2%).

This problem did not occur with ESP GhostScript 7.x

Original report is this one

http://sourceforge.net/tracker/index.php?func=detail&aid=1222120&group_id=11202&atid=111202

I have reproduced it here by inserting the PostScript commands and running
GhostScript manually, to exclude any influence of CUPS or Foomatic.

Link: http://www.cups.org/str.php?L1204
Version: 8.15-current





More information about the cups mailing list