Copy link to clipboard
Copied
What is the javascript to add a new artboard to an existing Illustrator document?
Copy link to clipboard
Copied
uses the existing document size to frame the new artboard
var artboard = doc.artboards[0];
var ABrect = artboard.artboardRect;
var newAB = doc.artboards.add(ABrect);
This may help: Adobe Illustrator CS6 Reference: JavaScript (PDF, 1.0M)
Copy link to clipboard
Copied
This was very helpful. I am new to javascript and was not using the first line, which seems to tell it where to put it. Thanks.