• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Script to add an artboard

New Here ,
Mar 02, 2014 Mar 02, 2014

Copy link to clipboard

Copied

What is the javascript to add a new artboard to an existing Illustrator document?

TOPICS
Scripting

Views

2.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Engaged ,
Mar 02, 2014 Mar 02, 2014

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 02, 2014 Mar 02, 2014

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines