🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.laser-printers
Article #666

Troff/PostScript Question

#666
From: Paul Ausick
Date: Fri, 17 Apr 1987 01:02
37 lines
1867 bytes
We use a Sun3 network with their 3.0 OS and Adobe's Transcript,
without ditroff, hooked to Apple/Sun LW+.  Here's the question:

I want to print the word "DRAFT" on every page of a document
in outline letters right across the middle of the page, slanting
upwards.  I have written a little sed script that filters the
output of pscat before sending the output to lpr.  Here's the
sed file:

/^BP$/a\
save /savePSCAT exch def
/Helvetica-Bold findfont 288 scalefont setfont
244 244 moveto %coordinates print text approx. .5" down and .5" in from
	       %upper right corner of page - these can be changed
gsave
30 rotate
(DRAFT) true charpath
gsave 1 setgray fill grestore stroke
grestore
savePSCAT restore

Believe it or not this almost works.  The big problem is that
the y-axix is inverted.  The PS "30 rotate" rotates the output
clockwise, not counterclockwise as it should.  And the text is
printed as if were hinged on the baseline and the hinge were opened.
Hold a piece of printed text upside down and look through the
back of the page.  That's what I get. I can get the PS program
to work on its own; of course I have to change the coordinates.

I'm sure the /BP in the pscat.pro file is what's causing this,
but I want to work around, not change, that if I can.

Can anyone help?  What is happening?  How can I fix it?

Thanks,

	/Paul Ausick	...hplabs!dana!paul
Technical Details
Message-ID: <148@dana.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!amdahl!dlb!dana!paul

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!amdahl!dlb!dana!paul
From: paul@dana.UUCP (Paul Ausick)
Newsgroups: comp.laser-printers,comp.text
Subject: Troff/PostScript Question
Message-ID: <148@dana.UUCP>
Date: Thu, 16-Apr-87 20:02:42 EST
Article-I.D.: dana.148
Posted: Thu Apr 16 20:02:42 1987
Date-Received: Sun, 19-Apr-87 10:25:44 EST
Organization: Dana Computer, Inc., Sunnyvale, CA
Lines: 37