22 Replies Latest reply on Oct 30, 2017 11:38 PM by Silly-V

    Setting the bleed in AI via Javascript

    matts45635225 Level 1

      Hi All,

       

      I'm writing a function to change the artboard size and add bleed depending on certain conditions.

      I can't actually believe this is causing me trouble but here it is, I'm trying to set the bleed dimensions in AI document with Javascript. All I've found so far is setting up PDF export options or print options, but not the actual artboard Document Setup. I just want to be able to set bleed to a newly created document like in this window:

      So similar to Indesign:

       

      with(myDocument.documentPreferences){
        documentBleedUniformSize = true;
        documentBleedTopOffset = 7;
        }
      

       

      (CC2017)

      Screenshot 2017-04-06 15.45.28.png