Skip to main content
June 12, 2009
Question

How to automate the flatten transparency in illustrator?

  • June 12, 2009
  • 1 reply
  • 5377 views

How to automate the "Flatten Transparency option" in illustrator via javascript. Please share with me.

Thanks

This topic has been closed for replies.

1 reply

Larry G. Schneider
Community Expert
Community Expert
June 12, 2009

It appears to be an output option, not something you can activate in an active file.

June 13, 2009

Larry, Thanks for your response. But my question was i need to apply the flatten transparency(object->flatten transparency) in illustrator active document file for a particular selected items like textframe and pathitems etc. Is it possible via scripting. Kindly share with me.

Thanks..

Participant
October 7, 2014

I'm looking for the same thing.

app.executeMenuCommand('Flatten Transparency'); works in CC but all it does is it brings up the window and you still have to click OK to make the script continue.

Before anyone asks why do  you want to do it etc. In print thereare instances where you have to open and edit (not text) large numbers of pdfs to change colours, outline fonts etc otherwise there's trouble on print devices.

My script for instance looks for 100K blacks and replaces them with rich black, looks for empty text frames, overprint, bleed settings, clipping paths etc.

The only way to edit successfully a pdf without fonts is to place it and flatten transparency outlining fonts and then work on it.

So back to the point. After the window pops up, is there a way to simulate a keystroke like "Enter" or maybe app.executeMenuCommand('Flatten Transparency'); takes arguments like:

app.executeMenuCommand('Flatten Transparency',preset_name);...?

Anyone? Adobe SDK team? :-)


Matt, did you ever resolve this?

@Larry, You need to be able to flatten transparency all the time in pre-press to handle missing fonts.