In Adobe Illustrator (and other such graphics programs), it is possible to place different objects on different layers. All objects on a layer can be edited together, their stacking changed, and other useful manipulations. My question is this: is it possible to create layers (or layer-like structures) in Mathematica, and to then export them to pdf (or other such file format) so that Illustrator will interpret them as different layers?
What I have tried. I couldn't find anything in the documentation about creating layers, so I tried investigating. I created a two-layer document in Illustrator, saved as a pdf, and then read this into Mathematica. It looks like this after import:
The good news is that the circle and rectangle are still an editable vector objects, but they have been condensed onto one layer, as can be seen directly by exporting and then reading back into Illustrator -- everything is in one layer.
Here is the file with 2 layers: https://www.dropbox.com/s/2nf91att3t4l4x5/twoLayers.pdf?dl=0
I imported this with
img = Import[twoLayers.pdf]
and then exported using