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

Display alert for white overprint

Explorer ,
Feb 22, 2023 Feb 22, 2023

Hello,

 

i am trying to create a display alert if the illustrator document has white overprint in it. but it is not working as expected.

var doc = app.activeDocument;

for (var i = 0; i < doc.pageItems.length; i++) {
var item = doc.pageItems[i];
var fill = item.fillColor;

if (fill != null) {
if (fill.typename == 'SpotColor' && fill.colorType == ColorModel.SPOT && fill.tint == 100 && fill.spot.name != '[Registration]') {
// Check for white spot color that is not registration color
alert('White overprint detected in item ' + item.name);
} else if (fill.typename == 'NoColor') {
// Check for fill set to [Paper]
alert('Item ' + item.name + ' has fill set to [Paper], indicating a possible white overprint');
}
}
}
TOPICS
Scripting
276
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
no replies

Have something to add?

Join the conversation
Adobe