How to ungroup and releaseClipingMask?
Newbie question.
I have just embedded PDF docs in my AI doc (this part works). Now I need to ungroup and then release cliping mask for each like I would do in the UI.
Embedding code:
for(i = app.activeDocument.placedItems.length - 1; i >= 0 ; i--) {
app.activeDocument.placedItems.selected = true;
app.activeDocument.placedItems.embed();
}
If I understand the docs correctly, after calling embed() the placedItem becomes a PageItem (or GroupItem)? So I thought it would be something like this:
for (i = 0; i < app.activeDocument.pageItems.length; i++){
app.activeDocument.pageItems.selected = true;
app.activeDocument.pageItems.ungroup();
app.activeDocument.pageItems.releaseClipingMask();
}
But I don't find any ungroup or releaseClipingMask methods anywhere in the docs. How is this supposed to work?
-Dave