Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 192809 - pstops bug with PageSetup options
pstops bug with PageSetup options
Product: Fedora
Classification: Fedora
Component: cups (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
Blocks: FC6Target
  Show dependency treegraph
Reported: 2006-05-23 06:59 EDT by Anton Guda
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 1.2.1-1.7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-06-20 05:48:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
generated PDD file (20.26 KB, text/plain)
2006-05-23 06:59 EDT, Anton Guda
no flags Details
log from foomatic-rip (4.89 KB, text/plain)
2006-05-26 11:12 EDT, Anton Guda
no flags Details
Postscript file in /tmp (13.68 KB, text/plain)
2006-05-26 11:13 EDT, Anton Guda
no flags Details

  None (edit)
Description Anton Guda 2006-05-23 06:59:54 EDT
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).

How reproducible:

Steps to Reproduce:
1. Setup any printer with ljet4 foomatic driver (recomended).
2. Change halftone
3. Print any page with gray areas.

Actual results:
The same printout with different halftones.

Expected results:
CUPS must insert PS codes for entries from PPD file,
so output must be different with different halftones.

Additional info:
It seems, that not only halftone options is broken,
but any with PS code.
Comment 1 Anton Guda 2006-05-23 06:59:54 EDT
Created attachment 129849 [details]
generated PDD file
Comment 2 Anton Guda 2006-05-23 08:37:06 EDT
Tested with cups-1.2.1-2 : same result.
Comment 3 Tim Waugh 2006-05-24 13:09:45 EDT
> 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:

debug: 1

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?
Comment 4 Anton Guda 2006-05-26 11:12:07 EDT
Created attachment 130026 [details]
log from foomatic-rip
Comment 5 Anton Guda 2006-05-26 11:13:18 EDT
Created attachment 130027 [details]
Postscript file in /tmp
Comment 6 Anton Guda 2006-05-26 11:20:38 EDT
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).
Comment 7 Tim Waugh 2006-06-01 09:30:26 EDT
The difference between the halftoning algorithm option and the resolution option
is that they go into different setup sections.  The PageSetup section is missing
its options.

This is a pstops bug; the 1.1.23 CUPS pstops filter works fine.

I'll report it upstream.
Comment 8 Tim Waugh 2006-06-01 09:34:14 EDT
Reported upstream:

Comment 9 Tim Waugh 2006-06-02 10:36:54 EDT
Should be fixed in 1.2.1-1.4, available currently at:

Comment 10 Anton Guda 2006-06-03 06:24:38 EDT
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?
Comment 11 Tim Waugh 2006-06-08 06:51:36 EDT
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*'

Comment 12 Tim Waugh 2006-06-20 05:48:45 EDT
Anyway, works here.

Note You need to log in before you can comment on or make changes to this bug.