I constantly work with EPS and AI files in my Printing and Promotional Merchandising Business (Event Elves). I used to encounter issues with viewing these files in a native Linux application. In this post, I am going to show you a few different ways of viewing EPS and AI files. In addition, we will also cover basic conversions into PDF.
Opening / Viewing EPS and AI Files
Open with Xreader
I am running Linux Mint 18.3 (XFCE Edition). EPS and AI files can be opened using the pre-installed Xreader (Document Viewer) app. I tested this on a few files and it seems to work without any issues.
To install Xreader in Ubuntu/Linux Mint, open a terminal and type:
sudo apt-get install xreader
Import/Export with Inkscape
You can use Inkscape to import EPS and AI files. Open up Inkscape and go to:
File > Import
Or simply drag the file into the Inkscape window.
You can also export the file out as a PDF. Simple save the file as a PDF. Check out the video at the end of this post for a quick demo.
File Conversions using Command Line Tools
Linux newcomers tend to get a bit scared of the command line. The command line is your friend, but definitely exercise caution. Don’t just blindly enter commands from forums. Take some time to understand what the commands do.
I’ll be showing you how to do easy command line batch conversions using a simple bash script. But for now, let me introduce the tools we will be using for the conversions.
EPS to PDF Conversion
This is easily achieved with epstopdf which relies on the text-font-utils package.
To install in Ubuntu/Linux Mint, open a terminal and type:
sudo apt-get install texlive-font-utils
The syntax for EPS to PDF conversion is as follows:
epstopdf [input file.eps] [outpul file.pdf]
For example, if we have a file named business-card.eps, we can do the conversion as follows:
epstopdf business-card.eps business-card.pdf
AI to PDF Conversion
We will be using Ghostscript to do this conversion.
To install Ghostscript on Ubuntu / Linux Mint, open a terminal and type:
sudo apt-get install ghostscript
The syntax for conversion is as follows:
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=[output-file.pdf] [input-file.ai]
For example, if we have a file named business-card.ai, we can do the conversion as follows:
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=business-card.pdf business-card.ai
As you can imagine, if you have multiple files, converting them individually either with Inkscape or with the command line can get very cumbersome.
In the next post, we’ll write a simple bash script to convert multiple files.
I hope this helps someone out there.
For a complete walkthrough, check out the companion video below: