home *** CD-ROM | disk | FTP | other *** search
- %!
-
- % $Header: J:\pctcp.dos\vcs\dosapps\lpd\src\ps.hdv 1.1 03 Jun 1993 14:02:06 natalia $
-
- % heeere's the prologue start
-
- /$doLPDheader {
- gsave
- 32 dict begin
- 8 array astore /args exch def
-
- /p {
- 0.0 coffset sub 0 translate
- coffset
- /coffset noffset def
- /noffset exch def
- coffset 0 translate
- copypage erasepage newpath 0 pgtop moveto
- } def
-
- /n {
- spacing 0 3 -1 roll ashow
- 0 linepitch rmoveto
- /y currentpoint exch pop def
- y 0 lt {p} {0 y moveto} ifelse
- } def
-
- /r {
- spacing 0 3 -1 roll ashow
- /y currentpoint exch pop def
- 0 y moveto
- } def
-
- /q {
- spacing 0 3 -1 roll ashow
- /y currentpoint exch pop def
- } def
-
- /HB {/Helvetica-Bold findfont exch scalefont setfont} def
- /TR {/Times-Roman findfont exch scalefont setfont} def
-
- /linepitch -16.0 def
- /spacing 0.0 def
- /coffset 32.4 def
- /noffset 32.4 def
-
- clippath pathbbox
- /pgtop exch def
- pop /y exch def y translate
- /pgtop pgtop y sub 14.2 sub linepitch add def
- coffset 0 translate
- newpath 0 pgtop moveto
-
- /FN {16.0 TR} def
- /FV {18.0 HB} def
-
- 14.0 HB () n () n
- 72.0 HB args 0 get n () n () n
- FN (username: ) q
- FV args 0 get n () n
- FN (jobname: ) q
- FV args 1 get n () n
- FN (originating host: ) q
- FV args 2 get n () n
- FN (class: ) q
- FV args 3 get n () n
- FN (printed: ) q
- FV args 4 get n () n
- FN (at server ) q
- FV args 5 get q
- FN ( on printer ) q
- FV args 6 get q
- FN ( on device ) q
- FV args 7 get q
- p
- end
- grestore
- } def
- % this is the end of the prologue
-
- % the application prints the prologue, then print the arguments
- % as strings (in parens with parentheses escaped i.e. (\() and call
- % $doLPDheader as in this example below.
-
- % (joel) (postscript.tst) (abs.ftp.com) (abs)
- % (thursdays aren't the best) (albion) (qms) (lpt2)
- % $doLPDheader
-
- % that is all.
-
- % $Log: J:\pctcp.dos\vcs\dosapps\lpd\src\ps.hdv $
-
- Rev 1.1 03 Jun 1993 14:02:06 natalia
- Merged the changes from 2.22
-
- Rev 1.0.1.0 06 Apr 1993 09:14:36 natalia
- No change.
-
- Rev 1.0 16 Oct 1992 13:42:46 plummer
- Initial revision.
- %
-
-