home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / d / d423_liu / 21.ddi / PSLANMAN.SE_ / PSLANMAN.SE
Encoding:
Text File  |  1993-07-24  |  2.5 KB  |  97 lines

  1. @
  2. @L%
  3. @L% Lan Manager PostScript Print Separator Page
  4. @L% Copyright (c) 1991 by Microsoft Corporation
  5. @L% All Rights Reserved
  6. @L%
  7. @L% Pull off the job specific values:
  8. @L%----------------------------------
  9. @L/name (@N@L) def
  10. @L/jobid(@I@L) def
  11. @L/date (@D@L) def
  12. @L/time (@T@L) def
  13. @L% Get the page limits
  14. @L%--------------------
  15. @Lnewpath clippath closepath pathbbox
  16. @L/ymax exch def
  17. @L/xmax exch def
  18. @L/ymin exch def
  19. @L/xmin exch def
  20. @L/PrintWidth xmax xmin sub def
  21. @L/PrintHeight ymax ymin sub def
  22. @L% Define some handy procedures and values
  23. @L%----------------------------------------
  24. @L/inch {72 mul} def
  25. @L/White 1 def
  26. @L/Black 0 def
  27. @L/Gray .9 def
  28. @L/CenterString {
  29. @L    /str exch def /width exch def
  30. @L    width str stringwidth pop sub 2 div 0 rmoveto
  31. @L    str
  32. @L} def
  33. @L% Print the printers logo (if any)
  34. @L%---------------------------------
  35. @L/SysPrint where
  36. @L{
  37. @L    pop
  38. @L    SysPrint
  39. @L}{
  40. @L    /Times-Roman findfont .5 72 mul scalefont setfont
  41. @L    PrintWidth 2 div 6 72 mul moveto
  42. @L    (Microsoft) dup stringwidth pop 2 div neg 0 rmoveto show
  43. @L    PrintWidth 2 div 5 72 mul moveto
  44. @L    (LAN Manager) dup stringwidth pop 2 div neg 0 rmoveto show
  45. @L}ifelse
  46. @L% Set some standard parameters
  47. @L%-----------------------------
  48. @L100 0 {dup mul exch dup mul add 1 exch sub} setscreen
  49. @L2 setlinewidth 2 setmiterlimit
  50. @L% Clear and outline the title area
  51. @L%---------------------------------
  52. @Lnewpath
  53. @Lxmin ymax moveto
  54. @Lxmax ymax lineto
  55. @Lxmax ymax 1.5 inch sub lineto
  56. @Lxmin ymax 1.5 inch sub lineto
  57. @Lclosepath
  58. @Lgsave
  59. @Lcurrentgray 1 setgray fill setgray
  60. @Lgrestore
  61. @Lcurrentlinewidth 1 setlinewidth stroke setlinewidth
  62. @L% Add the label header
  63. @L%---------------------
  64. @L/Helvetica findfont .2 inch scalefont setfont
  65. @L% Date --------------------------------------
  66. @Lxmin .25 inch add ymax .2 inch sub moveto
  67. @L(Date: ) show date show
  68. @L% Time
  69. @LPrintWidth 1.5 inch sub ymax .2 inch sub moveto
  70. @L(Time: ) show time show
  71. @L% Job Number
  72. @LPrintWidth 2 div ymax .2 inch sub moveto
  73. @Ljobid stringwidth pop
  74. @L( : ) stringwidth pop
  75. @Lname  stringwidth pop
  76. @Ladd add 2 div
  77. @Lneg 0 rmoveto
  78. @Ljobid show ( : ) show name show
  79. @L% Underline label header
  80. @Lnewpath
  81. @Lxmin ymax .3 inch sub moveto xmax ymax .3 inch sub lineto
  82. @Lclosepath
  83. @Lstroke
  84. @L% Add the username
  85. @L%-----------------
  86. @L/Helvetica-Bold findfont 1 inch scalefont setfont
  87. @Lnewpath
  88. @Lxmin ymax 1.25 inch sub moveto
  89. @LPrintWidth name CenterString true charpath
  90. @Lclosepath
  91. @Lgsave
  92. @LGray setgray fill
  93. @Lgrestore
  94. @Lstroke
  95. @Lshowpage
  96. @E
  97.