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