Red Hat Bugzilla – Bug 208670
Imageable Area still ignored
Last modified: 2009-01-22 10:39:42 EST
Description of problem:
As reported in #134260, the Imageable Area seetings in system-config-printer are
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux AS release 4 (Nahant Update 3)
Always. Set Imageable Area in system-config-print and then examine the printer's
PPD file in /etc/cups/ppd.
Steps to Reproduce:
1. In system-config-printer set up a queue, say N2-215-HP-LJ4100.
2. Under the "Queue Options" tab and "Imageable Area" group set all margins to 36.
3. Select OK, then Apply, then Exit.
4. grep "ImageableArea Letter/US" /etc/cups/ppd/N2-215-HP-LJ4100.ppd
*ImageableArea Letter/US Letter: "0 0 612 792"
*ImageableArea Letter/US Letter: "36 36 576 756"
Please suggest a work-around if there is no fix.
This part of util/backend.py contains an error:
489 for i in range (n, len (ppd)):
490 if ppd[i].startswith ("*ImageableArea %s/" % size):
492 border = ppd[i].split ('"').split (" ")
493 if border.find ('.') != -1:
494 border = border[:border.index ('.')]
496 return ppd
Lines 493-494 are trying to operate on border as though it were a string when it
is a list of strings. The operation should iterate over the list. An exception
is caused and the function returns.
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.