One of my web applications is using RML to render PDFs.
For one PDF document template I received a new logo file which was produced with Adobe Illustrator (file extension .ai).
The RML library cannot handle ai-files, but eps-files.
In order to convert the file I used Ghostscript as following:
gs -dNOPAUSE -dBATCH -sDEVICE=eps2write -sOutputFile=out.eps input.ai
where
-dNOPAUSEmeans “no pause after page”-dBATCHmeans “exit after last file”-sDEVICEselects the device-sOutputFileis the name of the - you can guess it - output file
P.S.: I ❤️ open source and Linux!