Cedric wrote on Feb 21st, 2010, 2:47pm:but i dont think there is a good reason to support ai, as you have the pdf export as you already found out.
What to you expect the ai export to do what the pdf cant
The biggest thing for me that's lacking with export-to-pdf then import-to-illustrator, is that there is no way to create/preserve layers. And layers are REAL handy if the purpose for bringing it into AI in the first place is to 'tweak' it. (btw, you
can create
pdf layers, i've posted such code to the forum before, but pdf layers do
not make illustrator layers when imported. i won't get into the "why" of it, but it's not a "bug", and don't expect it to ever work)
It'd be handy to be able to do something like this:
PGraphicsAI ai = (PGraphicsAI)beginRecord(AI, "test.ai");
ai.beginLayer("layer1");
// draw a bunch of stuff
ai.beginLayer("layer2");
// draw some more stuff
And of course grouping would be useful for similar reasons, imagine:
ai.beginGroup("complex multi-part entity");
//draw
//draw
//draw some more
ai.endGroup();
..anyway, just adding my $.02 for later reference in case anyone ever goes back to work on a full-featured AI exporter.