[Tex/LaTex] Include Adobe Illustrator files (ai) with XeTeX

graphicsillustratorpdfxetex

Adobe Illustrator files are PDF compatible. That is a regular PDF reader, ex. Sumatra-pdf, can open and view them. I was hoping it would be possible to have xetex (with xelatex) and graphicx to include Adobe Illustrator files directly without having to go into Illustrator and save as a PDF manually. This would simplify my workflow and make it much quicker to make changes to figures in Illustrator and then compile the xetex document to see how it looks in the text.

Does anyone know if this is possible?

What versions of PDF are supported (is this determined by the graphicx package)? Are there other PDF importing methods?

Edit: in the .log there isn't much information:

File: image.pdf Graphic file (type QTm)
 <use  "image.pdf" >

I renamed it to .pdf from .ai, otherwise it won't work at all, however, the image doesn't appear in the document.

Edit 2: Here is an .ai file from the latest illustrator version (CS5) if anyone wants to play around:
link removed

Best Answer

While it may be possible to trick XeTeX into accepting .ai-files from Illustrator I would recommend against it. The in the .ai-file embedded pdf document is using a higher pdf version than the standard version of pdfTeX in most distributions but you can adjust this using \pdfminoversion. Additionally the file is much larger and I am not sure if XeTeX would be able to throw out the unnecessary parts, so that your final document would also wasting lots of space.

Exporting it from Illustrator as a PDF/X files has worked nicely for me with many documents and helps you to achieve a final document which is close to PDF/X and won't give you any troubles with printing or different readers.

Related Question