Red Hat Bugzilla – Bug 129866
printing via a2ps wrong paper size and ugly result
Last modified: 2007-11-30 17:10:47 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)
Description of problem:
When printing with a2ps:
[dumas@hermes these]$ a2ps -s2 ~/these.ps_pages
[/home/dumas/these.ps_pages (ps, dï¿½lï¿½guï¿½ ï¿½ PsNup) : 7 pages sur 2
request id is kfet-147 (1 file(s))
[Total : 8 pages sur 2 feuilles] envoyï¿½ ï¿½ l'imprimante par dï¿½faut
The job sent requires letter paper, and when I force the printer to
print (on A4) the result is ugly, it seems the the resolution used for
printing is very bad, something like one half millimeter square for
(the messages above are, roughly: (ps, delegated to PsNup) : 7 pages
on two sheets.
And the second is [Total: 8 pages on 2 sheets]).
I configured the printer with:
[root@hermes root]# lpadmin -p kfet -m laserjet.ppd.gz -v
socket://kfet:9100 -o media=A4
lpr seems to print well.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. print via a2ps
Actual Results: a2ps tries to print on a letter paper, although the
printer was configured with A4. And the result is ugly.
Expected Results: a beautifull printing.
The system was upgraded from a redhat 9 using yum. On the redhat 9
a2ps printed well. I didn't used printconf/system-config-printer to
configure the printers, only lpadmin.
I have another problem with cups but I don't know if it is related or not:
You need to use the -M option to set the page size.
[dumas@hermes dumas]$ a2ps -s2 -MA4 these.ps_pages
Still the same.
I tried to print from openoffice, and it also wants to print on letter.
The quality seems fine, but there is only one page per sheet, thus it
isn't easy to know if the issue of ugly output is also present with
And also on redhat 9 the -M wasn't needed.
I don't think a2ps is the problem here -- it's more likely that your
printer is configured incorrectly.
Please try using system-config-printer to configure it instead.
I figured out what was the problem.
I reconfigured my printer with
lpadmin -p kfet -v socket://kfet:9100 -o media=A4
lpadmin -p kfet -m laserjet.ppd.gz -v socket://kfet:9100 -o media=A4
and now it works well. That's strange because the printer is an
HP laserjet 4200dtn
and also it used to work with that ppd file. Another strange thing is
that lpr printed well, but not a2ps or openoffice.
I also tried with system-config-printer. After I have run one or the
other lpadmin command, I just click on apply and it prints well.
Maybe this should be reassigned to cups? Otherwise it is notabug.