# [OS X TeX] EPS to PDF conversion fails in graphicx (but not in preview)

Themis Matsoukas tmatsoukas at me.com
Thu Dec 2 16:44:29 CET 2010

I have run into a problem (again) with graphicx failing to convert an EPS created by Illustrator CS5 into pdf. In this case, the original eps was generated by igor (http://wavemetrics.com/). This file, igor.eps, is converted properly by graphicx, or when dropped on TS.  I then opened the igor.eps in AI CS% and saved it as eps without doing any sort of editing in illustrator. The resulting file (aics5.eps) fails to convert to pdf, whether in includegraphics, or when dropped on TS. Nonetheless, if I drop it on preview.app I get a perfectly fine pdf.

Sometime ago I had reported a similar problem and Ross Moore was kind enough to look into the problematic file. However, I am not looking for fixes (I have a fix, I can drop the eps on preview) but for a solution. It simply breaks my workflow (just as I started to write a book with 100+ figures...)  if I have to go outside Latex/AI/igor to fix such problems when they appear. I don't know (and don't have the expertise to determine) whether the problem is with gs or with illustrator but fact that the offending file is converted by preview.app makes me think it is with gs.

I am attaching the two eps files (igor.eps, aics5.eps), a small latex file that demonstrates the problem, and the pdf out put I get (test.pdf).

Themis

\documentclass[11pt,article]{memoir}
\usepackage{graphicx}
\begin{document}

\begin{center}
\includegraphics[width=3.25in]{igor}\\
EPS produced by IGOR
\end{center}

\begin{center}
\includegraphics[width=3.25in]{aics5}\\
EPS produced by AICS5.
\end{center}
\end{document}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: aics5.eps
Type: image/eps
Size: 615746 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20101202/c816096b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: igor.eps
Type: image/eps
Size: 39564 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20101202/c816096b/attachment-0001.bin>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 21643 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20101202/c816096b/attachment.pdf>