home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3284 < prev    next >
Encoding:
Internet Message Format  |  1991-05-04  |  1.9 KB

  1. From: grover@big-joe.cs.unlv.edu (Kevin Grover)
  2. Newsgroups: comp.sources.wanted,alt.sources
  3. Subject: Re: Utility to print DoD headings at top and bottom of paper??
  4. Message-ID: <1991May3.190223.27082@unlv.edu>
  5. Date: 3 May 91 19:02:23 GMT
  6.  
  7. In article <14684@hacgate.UUCP>, kelly@ipla01.hac.com (Keith Kelly) writes:
  8. ) Would anyone know if there is a commerical or PD utility or print filter which
  9. ) will allow DoD markings to be automatically printed at the top and bottom of
  10. ) printed output, including header pages?  Thanks in advance.
  11.  
  12. This is a little PostScript program I wrote that redefines the showpage operator
  13. to put a header for the Information Science Research Institute on the
  14. first the first page:
  15.  
  16. /oldshowpage /showpage load def
  17. /showpage
  18.   {
  19.     save
  20.       initgraphics
  21.       0 setgray
  22.       /Times-Roman findfont [25 0 0 45 0 0 ] makefont setfont
  23.  
  24.       36 750 moveto (Information Science Research Institute) show
  25.  
  26.       /Helvetica findfont 10 scalefont setfont
  27.  
  28.       425 780 moveto  (University of Nevada, Las Vegas) show
  29.       425 771 moveto  (School of Engineering) show
  30.       425 762 moveto  (Information Science Research Institute) show
  31.       425 753 moveto  (4505 Maryland Parkway) show
  32.       425 744 moveto  (Las Vegas, Nevada 89154) show
  33.  
  34.        37 740 moveto 576 740 lineto 2 setlinewidth stroke
  35.     restore
  36.     oldshowpage
  37. % - The next line undefines the new showpage so that following
  38. %   pages are printed normally
  39.    /showpage /oldshowpage load def
  40.   } bind def
  41.  
  42.  
  43. Commenting the Last Line, should allow the header to be shown an all pages.
  44. You could also modify this program to draw pictures, or print a logo.
  45.  
  46. -- 
  47.   +-------------------------------------------------+----------------------+
  48.   | Kevin Grover             UNLV Computer Science  |     Home of the      |
  49.   | grover@cs.unlv.edu       Las Vegas, Nevada      |    Running REBELS    |
  50.   +-------------------------------------------------+----------------------+
  51.