Search code examples
perlpdfeps

How do I embed EPS into a PDF with PDF::API2?


Obviously, I want to avoid raster images as intermediate step.


Solution

  • I've never tried this, but I think you'd have to first convert the EPS file to a PDF (using Ghostscript or something), and then use importPageIntoForm or importpage (depending on exactly what you're trying to do). You need a PostScript interpreter to handle EPS, because PostScript is a complete programming language, and PDF isn't.