Roland Bless has submitted an update of support/ps2eps
he writes of it:
ps2eps v1.35 in CTAN:support/ps2eps
ps2eps is a tool to produce Encapsulated PostScript Files (EPS/EPSF) from usual one-paged Postscript documents. It calculates correct Bounding Boxes for those EPS files and filters some special postscript command sequences that can produce errorneous results on printers.
You need:
- perl (an interpreter for the perl language, see http://www.perl.com)
- ghostscript (an interpreter/raster image processor for the PostScript language, see http://www.cs.wisc.edu/~ghost/)
- maybe an ANSI-C compiler if you don't use Linux, Solaris, Digital Unix, HP-UX or Windows 9x/NT/2000.
The program is licensed under gpl.
Important changes since version 1.28:
- Improved processing of files with leading or trailing binary code
- Improved processing of files with embedded binary coded images
- Removes gabby diagnostic output from Adobe Printer Driver (see variable removeADO)
- Corrected handling of existing %%BoundingBox comments. Now it takes the last one seen. Should esp. work with %%BoundingBox: (atend) usage...
- Fixed case sensitiveness when checking for suffix replacement (thanks to Erik J=F8rgensen)
- Heuristic added for finding end of file by counting %%EOF comments. Now correctly treats already embedded EPS, too. Usually only trailing garbage (e.g., PCL control sequences) follows last %%EOF. However, sometimes the last %%EOF may be missing. Therefore, the behavior is switchable by new -E option.
- New first line of code for getting rid of the #! comment
- EOF handling corrected, allowing better handling of already embedded eps files
- New -P option to allow selective removal of embedded preview images (was previously default)
- Preview images were not filtered in the prolog section (now corrected with -P)
- New -N option to prevent inclusion of any surrounding postscript code
Robin Fairbairns
For the CTAN team