PSTOTGIF Copyright (C) 1993, Wolfgang Glunz, Siemens AG, glunz@ztivax.zfe.siemens.de pstotgif allows to convert Postscript files to a simple vector graphic format, that can be edited with tgif. Ask archie on where to find tgif. pstotgif works by redefining the two basic painting operators of Postscript, stroke and show. Others like fill or image are not supported. After redefining these operators, the Postscript file that needs to be converted is processed by GhostScript (gs). So you need to have Ghostscript in order to use this program. pstotgif uses a postprocessor to actually build the input file for tgif. This is a small lex-program (maketgif). To build it, just type make. Edit the pstotgif script and change LIB according to your local environment. The output of gs that is piped to maketgif is similar to PostScript (moveto lineto, show, ...). This is because I once needed to generate a simple (using only basic operators) PostScript file from a complex one. A cleaner approach to all this would be to implement a new device driver in GhostScript. This could either dump tgif input directly or (better) dump the picture as a simple (see above) PostScript file which can be converted to tgif or other graphic editors by a postprocessor. If anybody does this or has already done, please let me (glunz@ztivax.zfe.siemens.de) know. There is one test included. To run it type `make test' Usage : pstotgif [-t] [-m number] files Options: -t : dont make polygons from text. This however does not take into account the current font. So any text will be written horizontally with a standard font. -m factor: magnify by a factor. pstotgif writes the output to .obj so it can be read into tgif. Send any improvements to glunz@ztivax.zfe.siemens.de Permission to use and modify this software and its documentation for any purpose is hereby granted without fee provided, however, that the above copyright notice appear in all copies, that both that copyright notice and this permission notice appear in supporting documentation. The author makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.