6 Replies Latest reply on Apr 21, 2017 7:19 AM by ismaila76039464

    Extendscript Illustrator

    ismaila76039464

      Hi!

       

      I wrote a script in JavaScript for Adobe Illustrator CC 2017. In this script I am trying to add artboard to the document in function, but it isn't working.

       

      Here code:

      function addArtboard() {

          var doc = app.documents.add(null,1000,1000);

          doc = app.activeDocument;

          var artboards = doc.artboards;

           artboards.add([0 , 0, 1000, 1000]);

      }

       

      addArtboard();

       

      Thanks!