File Exchange

image thumbnail

eps2xxx

version 1.0.0.0 (5.14 KB) by Primoz Cermelj
Converts an EPS file to several other formats (PDF, JPG, PNG, TIFF).

14 Downloads

Updated 22 Feb 2005

View License

EPS2XX can convert an existing EPS file to 4 other formats: PDF, JPG, PNG, and TIFF (one at a time or several at once) using Ghostscript. EPS2XX reads an eps file, modifies the bounding box and creates output file(s) file whose size is/are determined by the bounding box from the eps file and not by the paper size. This can not be accomplished by using Ghostscript only.

This tool is especially suited for LaTeX (TeX) users who want to create pdf documents on the fly (by including pdf graphics and using either pdftex or pdflatex). An example would be, if you are using LaTeX (TeX) to typeset documents then the usual (simple) way to include graphics is to include eps graphics using for example (if there exists myfigure.eps)

\begin{figure}
\centering
\includegraphics[scale=0.8]{myfigure}\\
\caption{some caption.}
\end{figure}

To use pdflatex (pdftex) you do not need to change anything but provide another file myfigure.pdf in the same directory along with myfigure.eps. And this file, of course, can be generated by EPS2XXX.

Cite As

Primoz Cermelj (2020). eps2xxx (https://www.mathworks.com/matlabcentral/fileexchange/6858-eps2xxx), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (12)

Chen

Why I have this error:
"pdfError: failed running Ghostscript - check GS path
jpegError: failed running Ghostscript - check GS path
pngError: failed running Ghostscript - check GS path
tiffError: failed running Ghostscript - check GS path"?
Thanks a lot!

Super! Thanks a lot :-)

Barbara

Fernando

How to convert several eps files at once, or better append several eps files in one pdf file?

Leo Ka

Super!

Roel Hogenhuis

I tried to run eps2xxx, however I get this warning:

'bad command line option: -q -dNOPAUSE -dBATCH -dDOINTERPOLATE -dUseFlateCompression=true -sDEVICE=jpeg -r300 -sOutputFile="C:\Temp\plot.jpg" -f "C:\Temp\plot.ps.eps2xxx~"

Does anybody know how to solve this problem,

Greetings,

Roel

Mark Tschopp

This script worked well for pdf, jpg and png files. The tif file conversion did not look good for eps image files, though. For pdfLaTex documents, the pdf conversion in this tool and eps2pdf is handy, though.

Nevzat Simsek

David Sterling

Well done -- finally an simple script to squeeze the unnecessary white space out of eps files to make them (and resulting pdf files) more suitable for inclusion in LaTeX documents.

Z. Zheng

exactly what i need. thanks a lot!

D. Cysarz

Useful tool! Needs some minor modifications ('strfind' must be exchanged by 'findstr' and '||' must be exchanged by '|') under Matlab R12.

tobias fuhrer

nice. very useful to circumvent (via eps export) font and quality problems exporting matlab graphs.

Updates

1.0.0.0

Minor bug removed;
Eps files without the BB are now upported;

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: savefig, BaFigExPro (v. 2.7)