Article View: comp.lang.postscript
Article #7309Re: Inserting a PS program into "psdit" output
From: Ron Natalie
Date: Fri, 15 Jul 1988 12:50
Date: Fri, 15 Jul 1988 12:50
37 lines
1577 bytes
1577 bytes
I've done exactly that, stuffing the postscript for the letterhead
down before the Adobe prolog, and it works fine. Maybe there's some bug
in your postscript. This is what I do (memoline1 and memoline2 are
def'd to be the name and address of the department and pushed down
by the shell script in advance of this file):
gsave
/rutgers {
/scfactor exch def
/logow 656 def
/logoh 207 def
logow scfactor div logoh scfactor div scale
656 207 true [ 656 0 0 -207 328 0 ] { <
FFFFFFFFFFFFFFCFCE3B2240100000000000000000000000000000000000000000000000
... Bitmap of Rutgers LOGO deleted ...
000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000
> } imagemask
} def % end rutgers def
/inch { 72 mul } def
0 setgray
4.25 inch 10.5 inch translate
300 1 inch div rutgers
grestore
gsave
/showcenter {
dup stringwidth pop 2 div neg 0 rmoveto show
} def
/Helvetica findfont 10 scalefont setfont
4.25 inch 9.6 inch moveto
memoline1 showcenter
4.25 inch 9.45 inch moveto
memoline2 showcenter
grestore
Technical Details
Message-ID:
<Jul.15.08.50.12.1988.20580@topaz.rutgers.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!mordor!lll-lcc!ames!mailrus!cornell!rochester!rutgers!topaz.rutgers.edu!ronReferences:
<2487.1988Jul12.10:49:41@hammer.me.toronto.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!mordor!lll-lcc!ames!mailrus!cornell!rochester!rutgers!topaz.rutgers.edu!ron From: ron@topaz.rutgers.edu (Ron Natalie) Newsgroups: comp.lang.postscript Subject: Re: Inserting a PS program into "psdit" output Keywords: psdit, Laserwiter, letterhead Message-ID: <Jul.15.08.50.12.1988.20580@topaz.rutgers.edu> Date: 15 Jul 88 12:50:13 GMT References: <2487.1988Jul12.10:49:41@hammer.me.toronto.edu> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 36