Getting groupItem from file without opening it.
Hey i'm wondering if there is any way to load groupItem from .ai /.pdf file without opening it into Illustrator.
For example i know i can use:
app.preferences.PDFFileOptions.pageToOpen = 1;
groupItems.createFromFile(new File(pathToTheFile)); This will place 1st page of .pdf file as a group in my Document, but all the names, tags etc. inside this group will be destroyed, even text frames will be sliced.
I think the same will happen with:
app.activeDocument.placedItems.add(new File(pathToFile));
So is there any other way to get data from the .ai / .pdf file without running this?
app.open(new File(pathToFile));
I'm working on illustrator with lots of plugins and opening a file may last ~15-120 seconds, so i'm looking for some way to avoid it.