View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.4 | 9 ratings Rate this file 24 Downloads (last 30 days) File Size: 5.14 KB File ID: #6858 Version: 1.0



Primoz Cermelj (view profile)


04 Feb 2005 (Updated )

Converts an EPS file to several other formats (PDF, JPG, PNG, TIFF).

| Watch this File

File Information

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)

\caption{some caption.}

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.


This file inspired Ba Fig Ex Pro (V. 2.7).

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements ghostscript
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
22 Nov 2016 Chen

Chen (view profile)

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!

Comment only
07 Nov 2015 Boshra Rajaei

Super! Thanks a lot :-)

11 Feb 2015 Barbara

Barbara (view profile)

20 Mar 2012 Fernando

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

Comment only
24 Aug 2010 Leo Ka

Leo Ka (view profile)


09 Oct 2008 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\"

Does anybody know how to solve this problem,



Comment only
10 Sep 2008 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.

10 Aug 2006 Nevzat Simsek

02 Jan 2006 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.

18 Aug 2005 Z. Zheng

exactly what i need. thanks a lot!

20 Jul 2005 D. Cysarz

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

01 Mar 2005 tobias fuhrer

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

Contact us