[comp.lang.postscript] Inserting a PS program into "psdit" output

eastick@hammer.me.toronto.edu (Doug Eastick) (07/12/88)

I have written a PS program to output our Department letterhead.
I would like to include this into the PS input to the
printer, so that a person could print a letter on Dept.
letterhead without actually changing the printer paper.

Here, we use psroff, psdit (PS DITroff), and Apple Laserwriters.
The output from psdit (which then goes to the printer) has a really
crazy "prolog" that rescales the page and translates it.

My present problem is this: I can get the "letterhead" to come
out but my letter's text is in the top left corner, and (looks like)
it's scaled by 0.4 X 0.4 .

I have inserted my PS program before any of the "prolog" commands
are executed, and everything (I think) is translated back to
what it was before I started.

Any experienced help in this matter would be appreciated. Thanks

-- 
Doug Eastick	BITNET: eastick@me.UTORONTO	UUCP: ...!utai!me!eastick
		EDU: eastick@me.toronto.edu

ron@topaz.rutgers.edu (Ron Natalie) (07/15/88)

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