Mailinglist Archive: opensuse-bugs (4671 mails)

< Previous Next >
[Bug 640408] a2ps assumes letter size paper in germany
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 21 Sep 2010 07:45:12 +0000
  • Message-id: <20100921074512.F137F245520@xxxxxxxxxxxxxxxxxxxxxx>

https://bugzilla.novell.com/show_bug.cgi?id=640408

https://bugzilla.novell.com/show_bug.cgi?id=640408#c2


Johannes Meixner <jsmeix@xxxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Platform|Other |All
Found By|--- |Development
Resolution| |WORKSFORME
AssignedTo|jsmeix@xxxxxxxxxx |werner@xxxxxxxxxx
OS/Version|Other |openSUSE 11.3

--- Comment #2 from Johannes Meixner <jsmeix@xxxxxxxxxx> 2010-09-21 07:45:11
UTC ---
Do not mix up the printing application (a2ps)
with the printing system (CUPS and its filters).

When the printing application produces PostScript
the printing system prints it by default "as is",
in particular the size specified in the PostScript file.
See the "Scaling to Fit" section in
http://www.cups.org/documentation.php/doc-1.4/options.html
or follow the "SEE ALSO" section in "man lpoptions" which points
to "man lp" and then the "COMMON JOB OPTIONS" section there.

Regarding a2ps,
according to "man a2ps" you can specify "--medium=NAME" to use
the output medium NAME which are defined in /etc/a2ps.cfg.
In /etc/a2ps-site.cfg there is
-----------------------------------------------------------------
# Default medium
Options: --medium=LC_PAPER
-----------------------------------------------------------------
so that the default medium in a2ps depends on your locale
which works for me as expected:
-----------------------------------------------------------------
# export LC_ALL=de_DE
# export LANG=de_DE
# echo de_DE | a2ps -1 -o /tmp/a2ps.de_DE.ps
[stdin (unformatiert): 1 Seite auf einem Blatt]
[Insgesamt: 1 Seite auf einem Blatt] in die
Datei `/tmp/a2ps.de_DE.ps' geschrieben
# export LC_ALL=en_US
# export LANG=en_US
# echo en_US | a2ps -1 -o /tmp/a2ps.en_US.ps
[stdin (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] saved into the
file `/tmp/a2ps.en_US.ps'
burns:~ # grep '^%%BoundingBox' /tmp/a2ps.*.ps
/tmp/a2ps.de_DE.ps:%%BoundingBox: 24 24 571 818
/tmp/a2ps.en_US.ps:%%BoundingBox: 24 24 588 768
-----------------------------------------------------------------

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References