Home » Php » Converting Layered .ai to PDF via PHP

Converting Layered .ai to PDF via PHP

Posted by: admin July 12, 2020 Leave a comment


I’ve a .ai file with 2 Layer Groups and I want to pipe them into a .pdf file with layers. I already tried ImageMagick but I can’t get the selector.
I tried this:

exec("convert 'test.ai[0]' output0.png");
exec("convert 'test.ai[1]' output1.png");

The First one gives me the whole document. I tried .png for a faster preview of the content first. Anyone have a clue how to handle this? The PDF File will contain more informations then the .ai later.
Friendly regards

How to&Answers:

Layer 0 is always the “all lower layers combined” layer.