|
|
The information in this document was contributed by George Cameron <george@bio-medical-physics.aberdeen.ac.uk>; please direct to him any questions about it. Because the software described here is no longer being maintained, this document may be obsolete, or inconsistent with ps2epsi.1.
For other information, see the Ghostscript overview.
ps2epsi is a utility based on Ghostscript, which takes as input a PostScript file and generates as output a new file which conforms to Adobe's Encapsulated PostScript Interchange (EPSI) format, a special form of Encapsulated PostScript (EPS) which adds to the beginning of the file, as PostScript comments, a low-resolution monochrome bitmap image of the final displayed page. Programs which understand EPSI can use this bitmap as a preview on screen of the full PostScript page. The displayed quality is often not very good, but the final printed version uses the "real" PostScript, and thus has the normal full PostScript quality.
Using the supplied shell script ps2epsi, the command is
ps2epsi infile.ps [outfile.epsi]
where infile.ps is the input file and outfile.epsi is the output EPSI file to be created. If the output filename is omitted, ps2epsi generates one from the input filename; and any standard extension (.ps, .cps, .eps or .epsf) of the input file is replaced in the output file with the extension .epsi.
Not all PostScript files can be encapsulated, because there are restrictions in what is permitted in a PostScript file for it to be properly encapsulated. ps2epsi does a little extra work to try to help encapsulation, and it automatically calculates the bounding box required for all encapsulated PostScript files, so most of the time it does a pretty good job. There are certain to be cases, however, when encapsulation fails because of the nature of the original PostScript file.
ps2epsi files
File Contents
Ps2epsi.htm This document ps2epsi Unix shell script ps2epsi.ps Ghostscript program which does the work
Copyright © 1998, 2000 Aladdin Enterprises. All rights reserved.
This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license contained in the file LICENSE in this distribution.
Ghostscript version 7.07, 17 May 2003