home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / resource / xprinter / ppds / hpiv.ps < prev    next >
Encoding:
PostScript Printer Description  |  1997-07-08  |  12.6 KB  |  378 lines

  1. *PPD-Adobe: "4.0"
  2. *% Adobe Systems PostScript(R) Printer Description File
  3. *% This is not the official PPD file for HPLaserJet IV.
  4. *% It is edited by bristol because of the request from USL.
  5. *% Should the official PPD file be released, this one will replaced.
  6. *FormatVersion: "4.0"
  7. *FileVersion: "2.2"
  8. *PCFileName: "HPIV.PPD"
  9. *LanguageVersion: English
  10. *Product: "(HP LaserJet IV)"
  11. *PSVersion: "(52.2) 0"
  12. *ModelName: "HP LaserJet IV PostScript Cartridge"
  13. *NickName: "HP LaserJet IV PostScript Cartridge"
  14. *PJLanguage: "True"
  15.  
  16. *% General Information and Defaults ===============
  17. *FreeVM: "264000"
  18. *LanguageLevel: "1"
  19. *ColorDevice: False
  20. *DefaultColorSpace: Gray
  21. *VariablePaperSize: False
  22. *FileSystem: False
  23. *Throughput: "8"
  24. *Password: "0"
  25. *ExitServer: "
  26.   count 0 eq {  % is the password on the stack?
  27.     true
  28.   }{
  29.     dup    % potential password
  30.     statusdict /checkpassword get exec not
  31.   } ifelse
  32.   {  %  if no password or not valid
  33.     (WARNING : Cannot perform the exitserver command.) =
  34.     (Password supplied is not valid.) =
  35.     (Please contact the author of this software.) = flush
  36.     quit
  37.   } if
  38.   serverdict /exitserver get exec
  39. "
  40. *End
  41. *Reset: "
  42.   count 0 eq {  % is the password on the stack?
  43.     true
  44.   }{
  45.     dup    % potential password
  46.     statusdict /checkpassword get exec not
  47.   } ifelse
  48.   {  %  if no password or not valid
  49.     (WARNING : Cannot reset printer.) =
  50.     (Password supplied is not valid.) =
  51.     (Please contact the author of this software.) = flush
  52.     quit
  53.   } if
  54.   serverdict /exitserver get exec
  55.   systemdict /quit get exec
  56.   (WARNING : Printer Reset Failed.) = flush
  57. "
  58. *End
  59.  
  60. *OpenUI *Resolution: PickOne
  61. *DefaultResolution: 300dpi
  62. *Resolution 300dpi: "@PJL SET RESOLUTION=300"
  63. *Resolution 600dpi: "@PJL SET RESOLUTION=600"
  64. *?Resolution: "
  65. save
  66.   initgraphics
  67.   0 0 moveto currentpoint matrix defaultmatrix transform
  68.   0 72 lineto currentpoint matrix defaultmatrix transform
  69.   3 -1 roll sub dup mul
  70.   3 1 roll exch sub dup mul
  71.   add sqrt round cvi
  72.   (          ) cvs print (dpi) = flush
  73. restore
  74. "
  75. *End
  76. *CloseUI: *Resolution
  77.  
  78. *OpenUI *Smoothing/RET: PickOne
  79. *OrderDependency: 50 AnySetup *Smoothing
  80. *DefaultSmoothing: Medium
  81. *Smoothing None/Off: "0 statusdict /setdoret get exec"
  82. *Smoothing Light: "1 statusdict /setdoret get exec"
  83. *Smoothing Medium: "2 statusdict /setdoret get exec"
  84. *Smoothing Dark: "3 statusdict /setdoret get exec"
  85. *?Smoothing: "
  86. save
  87.   [(None)(Light)(Medium)(Dark)(Unknown)] statusdict /doret get exec
  88.   dup 3 gt{pop 4}if get = flush
  89. restore
  90. "
  91. *End
  92. *CloseUI: *Smoothing
  93.  
  94. *% Halftone Information ===============
  95. *ScreenFreq: "60.0"
  96. *ScreenAngle: "45.0"
  97. *DefaultScreenProc: Dot
  98. *ScreenProc Dot: "
  99. {abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub dup mul add 1
  100. sub }{dup mul exch dup mul add 1 exch sub }ifelse }
  101. "
  102. *End
  103. *ScreenProc Line: "{ pop }"
  104. *ScreenProc Ellipse: "
  105.   { dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }
  106. "
  107. *End
  108.  
  109. *DefaultTransfer: Null
  110. *Transfer Null: "{ }"
  111. *Transfer Null.Inverse: "{ 1 exch sub }"
  112.  
  113. *% Paper Handling ===================
  114. *% Use these entries to set paper size most of the time, unless there is
  115. *% specific reason to use PageRegion.
  116. *OpenUI *PageSize: PickOne
  117. *OrderDependency: 30 AnySetup *PageSize
  118. *DefaultPageSize: Letter
  119. *PageSize Letter: "statusdict /lettertray get exec"
  120. *PageSize Legal: "statusdict /legaltray get exec"
  121. *PageSize Executive: "statusdict /executivetray get exec"
  122. *PageSize A4: "statusdict /a4tray get exec"
  123. *PageSize B5: "statusdict /b5tray get exec"
  124. *PageSize Comm10/Comm #10 Envelope: "statusdict /com10envelopetray get exec"
  125. *PageSize Monarch/Monarch Envelope: "statusdict /monarcenvelopetray get exec"
  126. *PageSize DL/DL Envelope: "statusdict /dlenvelopetray get exec"
  127. *PageSize C5/C5 Envelope: "statusdict /c5envelopetray get exec"
  128. *?PageSize: "
  129. save
  130. 8 dict
  131.   dup /lettertray (Letter) put
  132.   dup /legaltray (Legal) put
  133.   dup /executivetray (Executive) put
  134.   dup /a4tray (A4) put
  135.   dup /b5tray (B5) put
  136.   dup /com10envelopetray (Comm10) put
  137.   dup /monarcenvelopetray (Monarch) put
  138.   dup /dlenvelopetray (DL) put
  139.   dup /c5envelopetray (C5) put
  140.   statusdict /papersize get exec
  141.   3 1 roll  {get} stopped {(Unknown)}if
  142.   exch  not { print (.Transverse) }if
  143.   = flush
  144. restore
  145. "
  146. *End
  147. *CloseUI: *PageSize
  148.  
  149. *% These entries will set up the frame buffer. Usually used with manual feed.
  150. *OpenUI *PageRegion: PickOne
  151. *OrderDependency: 40 AnySetup *PageRegion
  152. *DefaultPageRegion: Letter
  153. *PageRegion Letter: "letter"
  154. *PageRegion Legal: "legal"
  155. *PageRegion Executive: "executivepage"
  156. *PageRegion A4: "a4"
  157. *PageRegion B5: "b5"
  158. *PageRegion Comm10/Comm #10 Envelope: "com10envelope"
  159. *PageRegion Monarch/Monarch Envelope: "monarcenvelope"
  160. *PageRegion DL/DL Envelope: "dlenvelope"
  161. *PageRegion C5/C5 Envelope: "c5envelope"
  162. *CloseUI: *PageRegion
  163.  
  164. *% The following entries provide information about specific paper keywords.
  165. *DefaultImageableArea: Letter
  166. *ImageableArea Letter: "18 19 593 774 "
  167. *ImageableArea Legal: "18 19 593 990 "
  168. *ImageableArea Executive: "18 19 501 738 "
  169. *ImageableArea A4: "18 19 578 824 "
  170. *ImageableArea B5:"18 19 505 713"
  171. *ImageableArea Comm10/Comm #10 Envelope: "18 19 278 666 "
  172. *ImageableArea Monarch/Monarch Envelope: "18 19 259 522 "
  173. *ImageableArea DL/DL Envelope: "18 19 294 605 "
  174. *ImageableArea C5/C5 Envelope: "18 19 440 630 "
  175. *?ImageableArea: "
  176. save
  177.   /cvp {(                ) cvs print ( ) print } bind def
  178.   /upperright {10000 mul floor 10000 div} bind def
  179.   /lowerleft {10000 mul ceiling 10000 div} bind def
  180.   newpath clippath pathbbox
  181.   4 -2 roll exch 2 {lowerleft cvp} repeat
  182.   exch 2 {upperright cvp} repeat flush
  183.  restore
  184. "
  185. *End
  186.  
  187. *% These provide the physical dimensions of the paper (by keyword)
  188. *DefaultPaperDimension: Letter
  189. *PaperDimension Letter: "612 792"
  190. *PaperDimension Legal: "612 1008"
  191. *PaperDimension Executive: "522 756"
  192. *PaperDimension A4: "595 842"
  193. *PaperDimension B5: "516 729"
  194. *PaperDimension Comm10/Comm #10 Envelope: "297 684"
  195. *PaperDimension Monarch/Monarch Envelope: "279 540"
  196. *PaperDimension DL/DL Envelope: "312 624"
  197. *PaperDimension C5/C5 Envelope: "459 649"
  198.  
  199. *RequiresPageRegion All: True
  200. *LandscapeOrientation: Plus90
  201. *OpenUI *InputSlot: PickOne
  202. *OrderDependency: 20 AnySetup *InputSlot
  203. *DefaultInputSlot: Cassette
  204. *InputSlot Cassette: "0 statusdict /setpapertray get exec"
  205. *?InputSlot: "
  206. save
  207.    [ (Cassette) ] statusdict /papertray get exec
  208.    {get exec} stopped { pop pop (Unknown)} if = flush
  209. restore
  210. "
  211. *End
  212. *CloseUI: *InputSlot
  213.  
  214. *OpenUI *ManualFeed: Boolean
  215. *OrderDependency: 20 AnySetup *ManualFeed
  216. *DefaultManualFeed: False
  217. *ManualFeed True: "statusdict /manualfeed true put"
  218. *ManualFeed False: "statusdict /manualfeed false put"
  219. *?ManualFeed: "
  220. save
  221.   statusdict /manualfeed get {(True)}{(False)}ifelse = flush
  222. restore"
  223. *End
  224. *CloseUI: *ManualFeed
  225.  
  226. *DefaultOutputOrder: Normal
  227.  
  228. *OpenUI *TraySwitch: Boolean
  229. *OrderDependency: 50 AnySetup *TraySwitch
  230. *DefaultTraySwitch: False
  231. *TraySwitch True: "true statusdict /settrayswitch get exec"
  232. *TraySwitch False: "false statusdict /settrayswitch get exec"
  233. *?TraySwitch: "
  234. save
  235.   statusdict /trayswitch get exec {(True)}{(False)}ifelse = flush
  236. restore
  237. "
  238. *End
  239. *CloseUI: *TraySwitch
  240.  
  241. *% Font Information =====================
  242. *DefaultFont: Courier
  243. *Font AvantGarde-Book: Standard "(001.002)" Standard ROM
  244. *Font AvantGarde-BookOblique: Standard "(001.002)" Standard ROM
  245. *Font AvantGarde-Demi: Standard "(001.003)" Standard ROM
  246. *Font AvantGarde-DemiOblique: Standard "(001.003)" Standard ROM
  247. *Font Bookman-Demi: Standard "(001.001)" Standard ROM
  248. *Font Bookman-DemiItalic: Standard "(001.001)" Standard ROM
  249. *Font Bookman-Light: Standard "(001.001)" Standard ROM
  250. *Font Bookman-LightItalic: Standard "(001.001)" Standard ROM
  251. *Font Courier: Standard "(002.002)" Standard ROM
  252. *Font Courier-Bold: Standard "(002.002)" Standard ROM
  253. *Font Courier-BoldOblique: Standard "(002.002)" Standard ROM
  254. *Font Courier-Oblique: Standard "(002.002)" Standard ROM
  255. *Font Helvetica: Standard "(001.002)" Standard ROM
  256. *Font Helvetica-Bold: Standard "(001.002)" Standard ROM
  257. *Font Helvetica-BoldOblique: Standard "(001.002)" Standard ROM
  258. *Font Helvetica-Narrow: Standard "(001.002)" Standard ROM
  259. *Font Helvetica-Narrow-Bold: Standard "(001.002)" Standard ROM
  260. *Font Helvetica-Narrow-BoldOblique: Standard "(001.002)" Standard ROM
  261. *Font Helvetica-Narrow-Oblique: Standard "(001.002)" Standard ROM
  262. *Font Helvetica-Oblique: Standard "(001.002)" Standard ROM
  263. *Font NewCenturySchlbk-Bold: Standard "(001.006)" Standard ROM
  264. *Font NewCenturySchlbk-BoldItalic: Standard "(001.004)" Standard ROM
  265. *Font NewCenturySchlbk-Italic: Standard "(001.003)" Standard ROM
  266. *Font NewCenturySchlbk-Roman: Standard "(001.004)" Standard ROM
  267. *Font Palatino-Bold: Standard "(001.002)" Standard ROM
  268. *Font Palatino-BoldItalic: Standard "(001.002)" Standard ROM
  269. *Font Palatino-Italic: Standard "(001.002)" Standard ROM
  270. *Font Palatino-Roman: Standard "(001.001)" Standard ROM
  271. *Font Symbol: Special "(001.003)" Special ROM
  272. *Font Times-Bold: Standard "(001.002)" Standard ROM
  273. *Font Times-BoldItalic: Standard "(001.004)" Standard ROM
  274. *Font Times-Italic: Standard "(001.002)" Standard ROM
  275. *Font Times-Roman: Standard "(001.002)" Standard ROM
  276. *Font ZapfChancery-MediumItalic: Standard "(001.003)" Standard ROM
  277. *Font ZapfDingbats: Special "(001.002)" Special ROM
  278. *?FontQuery: "
  279. save
  280.  /str 100 string dup 0 (fonts/) putinterval def
  281.  {
  282.    count 1 gt
  283.    {
  284.      exch dup str 6 94 getinterval cvs
  285.      (/) print print (:) print
  286.      FontDirectory exch known
  287.      {(Yes)}{(No)} ifelse =
  288.    }
  289.    {exit} ifelse
  290.  }bind loop
  291.  (*) = flush
  292. restore
  293. "
  294. *End
  295.  
  296. *?FontList: "
  297. save
  298.   FontDirectory { pop == } bind forall flush
  299.   (*) = flush
  300. restore
  301. "
  302. *End
  303.  
  304. *% Printer Messages (verbatim from printer):
  305. *Message: "%%[ exitserver: permanent state may be changed ]%%"
  306. *Message: "%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%"
  307. *Message: "\FontName\ not found, using Courier"
  308.  
  309. *% Status (format: %%[ status: <one of these> ]%% )
  310. *Status: "idle"
  311. *Status: "busy"
  312. *Status: "waiting"
  313. *Status: "printing"
  314. *Status: "PrinterError: Out Of Paper"
  315. *Status: "PrinterError: Cover Open"
  316. *Status: "PrinterError: Feed Manual"
  317. *Status: "PrinterError: Paper Jam"
  318. *Status: "PrinterError: Miscellaneous Error"
  319. *Status: "PrinterError: Fatal Error"
  320.  
  321. *% Input Sources (format: %%[ status: <stat>; source: <one of these> ]%% )
  322. *Source: "serial9"
  323. *Source: "serial25"
  324. *Source: "AppleTalk"
  325. *Source: "Centronics"
  326.  
  327. *% Printer Error (format: %%[ PrinterError: <one of these> ]%%)
  328. *PrinterError: "Out Of Paper"
  329. *PrinterError: "Cover Open"
  330. *PrinterError: "Feed Manual"
  331. *PrinterError: "Paper Jam"
  332. *PrinterError: "Miscellaneous Error"
  333. *PrinterError: "Fatal Error"
  334.  
  335. *%DeviceAdjustMatrix: "[1 0 0 1 0 0]"
  336.  
  337. *% Color Separation Information =====================
  338.  
  339. *DefaultColorSep: ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi
  340.  
  341. *InkName: ProcessBlack/Process Black
  342. *InkName: CustomColor/Custom Color
  343. *InkName: ProcessCyan/Process Cyan
  344. *InkName: ProcessMagenta/Process Magenta
  345. *InkName: ProcessYellow/Process Yellow
  346.  
  347. *%  For 60 lpi / 300 dpi  ===============================
  348.  
  349. *ColorSepScreenAngle ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "45"
  350. *ColorSepScreenAngle CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "45"
  351. *ColorSepScreenAngle ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "15"
  352. *ColorSepScreenAngle ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "75"
  353. *ColorSepScreenAngle ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "0"
  354.  
  355.  
  356. *ColorSepScreenFreq ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "60"
  357. *ColorSepScreenFreq CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "60"
  358. *ColorSepScreenFreq ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "60"
  359. *ColorSepScreenFreq ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "60"
  360. *ColorSepScreenFreq ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "60"
  361.  
  362. *%  For 53 lpi / 300 dpi  ===============================
  363.  
  364. *ColorSepScreenAngle ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
  365. *ColorSepScreenAngle CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
  366. *ColorSepScreenAngle ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "71.5651"
  367. *ColorSepScreenAngle ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "18.4349"
  368. *ColorSepScreenAngle ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "0.0"
  369.  
  370. *ColorSepScreenFreq ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
  371. *ColorSepScreenFreq CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
  372. *ColorSepScreenFreq ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
  373. *ColorSepScreenFreq ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
  374. *ColorSepScreenFreq ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "50.0"
  375.  
  376. *% For "HP LaserJet IV" 
  377. *% end of PPD file for HP LaserJet III
  378.