Article View: comp.lang.postscript
Article #366Re: Needed: Legal (A4 size) portrait Prologue
From: Ananth Rao
Date: Tue, 28 Jul 1992 17:46
Date: Tue, 28 Jul 1992 17:46
39 lines
1959 bytes
1959 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.
a2ps allows you to set your paper margins at compile time. For legal size
paper, I use "-DHEIGHT=14.0 -DWIDTH=8.5 -DMARGIN=0.5 -DLEGAL" - look in the
Makefile for the first three options.
To access the lower tray on our HP laserjet IIId (which carries legal size
paper on the lower tray), I had to include the following code toward the
bottom of a2ps.c:
#ifdef LEGAL
printf("statusdict begin\n");
printf("1 setpapertray\n");
printf("end\n");
#endif
I'm not sure whether this postscript header is HP specific but it does work
on our system :-)
-ananth
--
Ananth Rao {uunet,yale}!hsi!rao
3M Health Information Systems rao@hsi.com
Wallingford, Connecticut
Technical Details
Message-ID:
<Bs41Du.F7n@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: <Bs41Du.F7n@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 17:46:41 GMT Lines: 39