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

Setting the bleed in AI via Javascript

Community Beginner ,
Apr 05, 2017 Apr 05, 2017

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

TOPICS
Scripting
18.4K
Translate
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

correct answers 1 Correct answer

Community Beginner , Mar 23, 2018 Mar 23, 2018

Summarizing best solution by far: we can change bleed size using preinstalled plugin.

Windows

https://goo.gl/YE1Vah by tomr11694738​

Drop plugin in ProgramFiles\Adobe\Adobe Illustrator\Plug-ins\Extensions. Use following code to run it:

app.sendScriptMessage ("My_plugin_name", "mySelector", bleeds);

where bleeds is bleedoffset in points.

Mac

GitHub - ten-A/Bleed by Ten A​

All hail to these two dudes.

Translate
Adobe
Engaged ,
Jul 16, 2025 Jul 16, 2025

Even though a solution exists, we need a simple way to access theese.

Here’s a user request you can upvote if you agree: http://illustrator.uservoice.com/forums/908050/suggestions/50205060

Translate
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
Explorer ,
Jul 18, 2025 Jul 18, 2025
LATEST

Yes, definitely wish it was baked into extendscript and we didn't have to go to such ends to modify bleed. The bleed Plugin does not work on Apple Silicon macs so the hacky way of doing things by no means covers all the bases. It is really less and less of a solution as time goes by.

Translate
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