January 19, 2021How Can You Convert an Adobe Illustrator File (AI) to an Encapsulated Postscript File (eps)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 -dNOPAUSE means “no pause after page” -dBATCH means “exit after last file” -sDEVICE selects the device -sOutputFile is the name of the - you can guess it - output file P....
January 19, 2021Which Image Formats Are Supported by ReportLab's PDF LibraryReportLab is an open source library for generating PDFs, written in Python. While ReportLab is absolutely battle tested, even Wikipedia uses it for PDF generation, documentation lacks a bit. I could not find a reliable source for supported image formats. Also, there is both an open source and a commercial license for ReportLab, with different feature sets. The latter one is supposed to be able to treat PDFs as image files, which then can be embedded....