Red Hat Bugzilla – Bug 192809
pstops bug with PageSetup options
Last modified: 2007-11-30 17:11:33 EST
Description of problem:
PPD file generated by system-config-printer or
by CUPS inself for HP Lasejet 5P (6L, 4) have entries for halftoning.
It realy changes in PPD file (*Default...),
if changed ny UI.
But in printout nothing changes.
Moreover: if intercept PS to file
(by using *FoomaticRIPCommandLine: "cat > /tmp/test.ps" )
no entries of PS code, corresponding to halftones and some other
things (like pagesize) detected.
Version-Release number of selected component (if applicable):
foomatic-3.0.2-35.bcx (added more halftones for better diagnostic).
Steps to Reproduce:
1. Setup any printer with ljet4 foomatic driver (recomended).
2. Change halftone
3. Print any page with gray areas.
The same printout with different halftones.
CUPS must insert PS codes for entries from PPD file,
so output must be different with different halftones.
It seems, that not only halftone options is broken,
but any with PS code.
Created attachment 129849 [details]
generated PDD file
Tested with cups-1.2.1-2 : same result.
> Moreover: if intercept PS to file
> (by using *FoomaticRIPCommandLine: "cat > /tmp/test.ps" )
> no entries of PS code, corresponding to halftones and some other
> things (like pagesize) detected.
If you intercept the PostScript like that, it's no wonder -- foomatic-rip is the
program that adds those bits of PostScript in! :-)
Instead, please edit /etc/foomatic/filter.conf and add the line:
Then you will find a /tmp/foomatic-rip.ps which is the PostScript with PPD
Do you still see no PPD PostScript snippets in the generated PostScript?
Created attachment 130026 [details]
log from foomatic-rip
Created attachment 130027 [details]
Postscript file in /tmp
Tested: the same results (ps and log attached).
All postscript as in previos test,
as foomatic-rip calls *FoomaticRIPCommandLine
after inserting features.
As seen in log and PS, code for "resolution=600dpi"
inserted, but code for halftoning - not.
Log shows, that section about halftoning detected in PPD,
but no more.
Some more minor error:
foomatic-rip set bad locale for external programs
(gs eat it, but perl complains).
The difference between the halftoning algorithm option and the resolution option
is that they go into different setup sections. The PageSetup section is missing
This is a pstops bug; the 1.1.23 CUPS pstops filter works fine.
I'll report it upstream.
Should be fixed in 1.2.1-1.4, available currently at:
Tested 1.2.1-1.4: works fine!
I suppose we can close this bug.
P.S. Do you need path for foomatic for more halftones?
Please verify that the problem remains fixed with this new test update:
You should be able to fetch it using this command, as root:
yum --enablerepo=updates-testing update 'cups*'
Anyway, works here.