Article View: comp.lang.postscript
Article #367Re: Needed: Legal (A4 size) portrait Prologue
From: Ananth Rao
Date: Tue, 28 Jul 1992 19:13
Date: Tue, 28 Jul 1992 19:13
43 lines
2301 bytes
2301 bytes
In article <1992Jul21.165027.17243@porthos.cc.bellcore.com> kjd@pyuxa.uucp (80731-desantis) writes:
>
>Does anyone have a Portrait Prologue to output postscript to
>Legal (A4 size) paper? I have the problem, of the text starting
>about an inch down from the top of the page, as if it was seeing
>8.5x11 inch paper, when indeed it is loaded with A4 size paper.
>Nobody I've talked to seems to know anything about A4 size paper,
>and I'm against a wall at this point. Anyone with any info on this,
>I'd appreciate it.
>
In the past, I've used a package called 'a2ps' which converts ascii to
postscript. It can be ftp'd from rigel.acs.oakland.edu and can be found in
pub/unix-c/postscript/a2ps.tar-z.
The program has a couple of options to change paper size (which you will need
to compile in). Look in the Makefile for '-DHEIGHT' and '-DWIDTH'. Values
that I have used are 14.0 and 8.5 resp. for legal size printing. You can change
the margin size with '-DMARGIN'.
Also to access our HP laserjet IIIsi's lower tray which holds the legal size
paper, I had to include the following code toward the bottom of a2ps.c and
define the variable LEGAL in the above Makefile line with '-DLEGAL'.
#ifdef LEGAL
printf("statusdict begin\n");
printf("1 setpapertray\n");
printf("end\n");
#endif
I'm sure there must be simpler solutions than this, but we use this
combination extensively especially for landscape mode printing on legal paper.
-ananth
Ananth Rao {uunet,yale}!hsi!rao
3M Health Information Systems rao@hsi.com
Wallingford, Connecticut
--
Ananth Rao {uunet,yale}!hsi!rao
3M Health Information Systems rao@hsi.com
Wallingford, Connecticut
Technical Details
Message-ID:
<Bs45Ez.Fqu@hsi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!hsi!mercury.hsi.com!raoReferences:
<1992Jul21.165027.17243@porthos.cc.bellcore.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!hsi!mercury.hsi.com!rao From: rao@hsi.com (Ananth Rao) Subject: Re: Needed: Legal (A4 size) portrait Prologue Message-ID: <Bs45Ez.Fqu@hsi.com> Keywords: A4 Sender: news@hsi.com (USENET news) Nntp-Posting-Host: hsi86.hsi.com Organization: 3M Health Information Systems, Wallingford CT References: <1992Jul21.165027.17243@porthos.cc.bellcore.com> Date: Tue, 28 Jul 1992 19:13:47 GMT Lines: 43