script to Flatten Transparency
Hello, Proficient Expert,
I build a new post to discussthis issue about Flatten Transparency, Is there a better way to solve it with AI, besides using app.executeMenuCommand('Flatten Transparency')?
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var pdfOptions = app.preferences.PDFFileOptions;
pdfOptions.pageRangeToOpen = "all";
pdfOptions.placeAsLinks = true;
var idoc = app.open(File("~/Desktop/test.pdf"));
app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS;var doc = app.activeDocument;
var pItems = doc.placedItems;
for(var i=pItems.length-1; i>=0; i--){
pItems[i].selected = true;
app.executeMenuCommand('Flatten Transparency') ;
}
