Copy link to clipboard
Copied
Is it possible to place .svg file with script inside Illustrator?
Using .. docR.placedItems.add()...
I am getting error message "'The file "FileName.svg" is in a format which cannot be placed'".
I have found on the forum and stackoverflow this solution:
https://stackoverflow.com/questions/28839109/place-svg-in-illustrator
var svgFile = File.openDialog("Select File to place...");
var doc = app.activeDocument;
doc. groupItems.createFromFile( svgFile );
If someone has something else to add welcome?
Copy link to clipboard
Copied
I have found on the forum and stackoverflow this solution:
https://stackoverflow.com/questions/28839109/place-svg-in-illustrator
var svgFile = File.openDialog("Select File to place...");
var doc = app.activeDocument;
doc. groupItems.createFromFile( svgFile );
If someone has something else to add welcome?
Copy link to clipboard
Copied
Hi @livl17017666, no you've found the answer. Illustrator doesn't seem to let us place SVGs as links. You could check out my answer here for an unusual use case, but what you've got is basically the whole answer.
- Mark