Homepage of Lars E. Pettersson

Using A4 paper format in RedHat Linux

Here are some tips on how to change the default paper size, letter, into A4.

ghostscript

In the file /usr/share/ghostscript/#.##/lib/gs_init.ps you will find:

% Optionally choose a default paper size other than U.S. letter.
% (a4) /PAPERSIZE where { pop pop } { /PAPERSIZE exch def } ifelse

Just remove the % and the space from the beginning of the second row.

a2ps

In the file /etc/a2ps-site.cfg you will find:

# Default medium
Options: --medium=_glibc

Change _glibc into A4

pbm2pps

In the file /etc/pbm2ppa.conf you will find:

# valid papersizes are us, letter, legal, a4
# US Letter (8.5"x11"): us, letter   (default)
# US Legal  (8.5"x14"): legal
# A4                  : a4
#papersize      letter
#papersize      legal
#papersize      a4

Just remove the # from the beginning of the line "#papersize a4"

pnm2pps

In the file /etc/pnm2ppa.conf you will find:

# Default papersize (only used for printing the color calibration
# test page with pnm2ppa -g).  
# Valid choices are: a4, letter, legal:

#papersize letter    # this is the default  
#papersize legal
#papersize a4

Just remove the # from the beginning of the line "#papersize a4"

xpdf

In the file /etc/xpdfrc you will find:

# Set the default PostScript paper size -- this can be letter, legal,
# A4, or A3.  You can also specify a paper size as width and height
# (in points).

#psPaperSize            letter

Just remove the # from the beginning of the line "#psPaperSize letter" and change letter into A4.