Tgif Home
----
About Tgif
Current Release & Download
FAQ
Copyright Info
A Screendump of Tgif
Release History
Tools That Tgif Uses
Tools That Work with Tgif
Author of Tgif
Miscellaneous Info
----
 
Return to Tgif's Home Page
William Chia-Wei Cheng
(bill.cheng@acm.org)

Tgif FAQ - Export Windows EPS File

When I insert the EPS file generated by tgif in Word or other Windows applications, I cannot see the content of the EPS file. Is there a way to have tgif generate a Windows friendly EPS file?
If you set the following X defaults (I can't remember if all these are necessary):

Tgif.UsePsAdobeString: 3.0/3.0
Tgif.HalfToneBitmap: true
Tgif.BitmapThreshold: 0.5
Tgif.TiffEPSI: true     (<-- don't need this if you are running tgif-4.x)

and you print into EPSI format, you will get an EPS file which can be used in Windows. I've tried this with Word and it seemed to work! With this setting, before the EPS file is generated, tgif generates an XBM representation of the file and look at the Tgif.XbmToTiff X default to convert the XBM file to a TIFF file. A small header is then prepend to the EPS file and the TIFF file is appended to the EPS file to generate a DOS/Windows EPS file. The default Tgif.XbmToTiff X default is:

Tgif.XbmToTiff: xbmtopbm %s | pnmtotiff -none > %s

Xbmtopbm and pnmtotiff are from the netpbm toolkit.

Please remember that an EPS file only works when you print with a PostScript printer!