SuSE GmbH

SuSE Support Database

Title: PRINTING: Setting the Page Size of ASCII files.

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

PRINTING: Setting the Page Size of ASCII files.

Symptom:

Your /etc/apsfilterrc file includes the parameter FEATURE=2 and you're having problems printing. An ASCII file, for example, printed with the command "lpr /etc/printcap", produces the two pages of A4 text reduced to A5, printed sideways on the page, and the first three or so letters are printed to the left and/or cut-off.

The file /etc/apsfilterrc includes the parameter FEATURE=1 and two A4 pages are printed but the last line is cut-off.

Cause:

The problem is not the printer itself, rather the fact that the print-data made by a2ps is too long, or too much, to be printed on one page.
In the file /etc/a2ps.cfg the page size and margins for each print-medium are specified.
Normally a2ps uses A4 format but if the margins set are larger than the actual margins of your printer the print information will not fit on one page.

Solution:

Change the following lines in the file /etc/a2ps.cfg:


#################################################################
# 1)            Definition of some media                        #
# (Must be defined before --medium)                             #
#################################################################
# Medium: name, width height [llx lly urx ury]
Medium: A3       842    1190
Medium: A4       595     842
Medium: A5       420     595
Medium: B4       729    1032
Medium: B5       516     729
Medium: Letter   612     792
Medium: Legal    612    1008
Medium: Tabloid  792    1224
Medium: Ledger  1224     792
Medium: Statement 396    612
Medium: Executive 540     720
Medium: Folio    612     936
Medium: Quarto   610     780
Medium: 10x14    720    1008
 
# Desk Jet users: bigger margins
Medium: A4dj            595     842     24      50      571     818
Medium: Letterdj        612     792     24      40      588     768

For Example, increasing the A4 formats' margins looks like this:
#################################################################
# 1)            Definition of some media                        #
# (Must be defined before --medium)                             #
#################################################################
# Medium: name, width height [llx lly urx ury]
Medium: A3       842    1190
Medium: A4       595     842     24      50      571     818
Medium: A5       420     595
Medium: B4       729    1032
Medium: B5       516     729
Medium: Letter   612     792
Medium: Legal    612    1008
Medium: Tabloid  792    1224
Medium: Ledger  1224     792
Medium: Statement 396    612
Medium: Executive 540     720
Medium: Folio    612     936
Medium: Quarto   610     780
Medium: 10x14    720    1008

# Desk Jet users: bigger margins
Medium: A4dj            595     842     24      50      571     818
Medium: Letterdj        612     792     24      40      588     768

In this case the settings for A4dj are entered.


Additional Information

Reference from of the Info-Page for a2ps:

Your Media 

Configuration Setting: Medium: NAME DIMENSIONS 
Define the medium NAME to have the DIMENSIONS (in PostScript 
points, i.e., 1/72 of inch). 

There are two formats supported: 

long 
in which you must give both the size of the whole sheet, and 
the size of the printable area: 
# A4 for Desk Jets 
#      NAME     W      H     LLX   LLY   URX    URY 
Medium: A4dj    595    842    24    50    571    818 
where WxH are the dimension of the sheet, and the four other 
stand for lower left x and y, upper right x and y. 

short 
in which a surrounding margin of 24 points is used 
# A4 
#      NAME     W      H 
Medium: A4      595    842 
is the same as 
# A4 
#      NAME     W      H 
Medium: A4      595    842    24    24    571    818 

The Info-Page for a2ps can be viewed with the command "info a2ps" or, using X-Windows and KDE with kdehelp "info:(a2ps)".

----------

Keywords: PRINTING, PRINTER, PAGE SIZE, LAYOUT, ASCII

----------

Categories: Frequently asked Questions , Documentation , Printer

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-jsmeix_print-ascii-pagesize, Copyright SuSE GmbH, Nuremberg, Germany - Version: 09. Nov 1999
SuSE GmbH - Last generated: 17. Jan 2000 12:18:14 by snbarth with sdb_gen 1.00.0