home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / Misc / HigherEducationMailbox.mbox / Archives_provide_val_.attach / May_91 / postscript.537 < prev    next >
Text File  |  1991-05-21  |  2KB  |  29 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;}
  2. \paperw11440
  3. \paperh9000
  4. \margl120
  5. \margr120
  6. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\tx5860\tx6400\tx6920\tx7460\tx8000\tx8540\f0\b0\i0\ul0\fs28 malformed postscript alphaimage\
  7. \
  8. Q:  Why do I get a "malformed postscript" error message when I send PostScript that includes the 
  9. \b alphaimage
  10. \b0  operator 
  11. \pard  to a printer
  12. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\tx5860\tx6400\tx6920\tx7460\tx8000\tx8540 ?\
  13. \
  14. A:  There were some extensions made to PostScript so that it can be used onscreen; the new form is called Display PostScript (DPS).  We have to handle the new operators (such as  
  15. \b alphaimage
  16. \b0 ) specially whenever we send anything to a conventional PostScript printer.  We do that by inserting the print package at the beginning of the data that is sent to the Window Server.  The print package—/usr/lib/NextStep/printPackage1.0.ps—redefines the DPS operators that can be simulated and no-ops those that don't mean anything on the display.  Other DPS operators are not redefined and will cause a "malformed postscript" message if sent to a printer.\
  17. \
  18. The philosophy behind this is that we don't want to image something on a printer differently from the way it looks on the screen.  
  19. \b alphaimage
  20. \b0  can't be imitated on paper, so it's an obvious one not to redefine.  It probably really is a mistake to try to send PostScript code that uses it to a printer.\
  21. \
  22. See also NextAnswer postscript.61.\
  23.  
  24. Not Valid for 2.0 Superceded by postscript.583\
  25. \
  26. QA537\
  27. \
  28.  
  29.