readme_fix_eps.txt for fix_eps.txt version 1.1 This program is Copyright 2003-2004 John C. Vernaleo Unfortunately, I am not comfortable putting unobscured email addresses on the web, but these shouldn't be too hard to figure out. (my_first_name)@netpurgatory.com or (my_last_name)@astro.umd.edu This is free software and is distributed under the terms of the GNU GPL. See file gpl.txt (which should be included) for the full text. This script is meant to fix postscript output produced by PGPLOT. All postscript output from PGPLOT is encapsulated postscript. This is so that single page files (the most common) should be labeled as EPS for inclusion in things like Latex documents. Unfortunately, some recent versions of CUPS (Common Unix Printing System) have a problem with this for multipage files. Strictly speaking, CUPS is correct (although there seems to be some problem in it as well), as an EPS cannot be more than one page long, but if you have ever programmed in FORTRAN, you can understand why it would not be easy to fix this in PGPLOT. But in Perl, it is very easy. This script takes the name of a postscript file, and if necessary, strips the eps tag out, leaving a valid, CUPS safe, postscript file. And it leaves a backup of the old file. This is especially useful in conjunction with PGPERL, where it may be called as a subroutine in the same script that make the postscript file in the first place.