home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / apps / 17533 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.sys.mac.apps
  2. Path: sparky!uunet!mcsun!sun4nl!ruuinf!ruunfs.fys.ruu.nl!walsteyn
  3. From: walsteyn@fys.ruu.nl (Fred Walsteijn)
  4. Subject: Re: Postscript to PICT/TIFF ?
  5. Message-ID: <1992Nov23.094436.9529@fys.ruu.nl>
  6. Organization: Physics Department, University of Utrecht, The Netherlands
  7. References: <1992Nov21.172709.45126@fourd.com>
  8. Date: Mon, 23 Nov 1992 09:44:36 GMT
  9. Lines: 28
  10.  
  11. If you have access to a Unix system running GhostScript ("gs")
  12. and the PBM tools then you might try the following script:
  13. ------------------------------------------------------
  14. #
  15. # the GhostScript file "pstoppm.ps" must reside in the 
  16. # same directory as this file !!!
  17. #
  18. gs -dNODISPLAY -q pstoppm.ps > /dev/null <<%EOF
  19. ($1:r)ppm24run
  20. quit
  21. %EOF
  22. ppmquant 256 $1:r.ppm | ppmtopict > $1:r.pict 
  23. -----------------------------------------------------
  24. Store this in an executable file named "pstopict"; put it in your 
  25. "bin" directory and convert your ps file using the command:   
  26.   pstopict yourfile.ps
  27. The script will create the file yourfile.pict, which may resemble
  28. the ps original (ha-ha).
  29. Transfer the file to your Mac in binary mode and set the file's creator
  30. and type; or use CAP with a sensible extension mapping.
  31. I only used this script once or twice, so it may need some improvement.
  32. Use "archie" to find out where the gs and pbm tools can be obtained
  33. (don't ask me...).
  34. Good luck,
  35. -----------------------------------------------------------------------------
  36. Fred Walsteijn                                | Internet: walsteyn@fys.ruu.nl
  37. Institute for Marine and Atmospheric Research | FAX:      31-30-543163
  38. Utrecht University, The Netherlands           | Phone:    31-30-533169
  39.