TCPDF içinde ImageEPS fonksiyonu (6.0.004) tam olarak uygulanan ve belgeler aşağıda belirtilmiştir değildir:
/**
* Embed vector-based Adobe Illustrator (AI) or AI-compatible EPS files.
* NOTE: EPS is not yet fully implemented, use the
* setRasterizeVectorImages() method to enable/disable rasterization of
* vector images using ImageMagick library.
* ...
*/
public function ImageEps(...){/*...*/}
TCPDF (6.0.004) checks an eps meta-data for its creator. If the creator is Adobe Illustrator, a version check is made and if the version is above 8 an error is generated.
Creators other than Adobe Illustrator are not checked and the function is allowed to continue. It does not seems like TCPDF parses the PS prolog and this is probably one reason why not all AI versions are supported. Here is what PostScript Language Reference says about the prolog section:
- The prolog is a set of application-specific procedure definitions that an applica-
tion may use in the execution of its script. It is included as the first part of every
PostScript file generated by the application. It contains definitions that match
the output functions of the application with the capabilities supported by the
PostScript language.
Prolog ayrıştırılır olmadığından, doğru dosyayı yorumlamak zahmetli.
Inkscape (0.48.3.1 r9886) Kahire ile EPSES oluşturur ve hiçbir hata ortaya çıkar ve işlevi devam edecektir. TCPDF kısmen eps yorumlamak, ancak çıkış yok bir şey yok, çünkü çıkış muhtemelen bazı hata işlemesi kaldırılır. Ama bu sadece bir tahmin.
I had more success with exporting my eps to a svg with
inkscape -D --file=filename.eps --export-plain-svg=filename.svg
and using ImageSVG
instead. Note: this function is not fully implemented either, so I can't guarantee that it will work. I have only tested a pretty basic eps.