Skip to main content
June 27, 2011
Question

remove overprint objects

  • June 27, 2011
  • 1 reply
  • 1143 views

Please let me know the method to select the objects in vector images and remove overprint objects.

regards,

Sashi         

This topic has been closed for replies.

1 reply

CarlosCanto
Community Expert
Community Expert
June 27, 2011

Hi Sashi, use the properties fillOverprint and/or strokeOverprint to evaluate your pathItems and do what you need accordingly

var idoc = app.activeDocument;
var ipath = idoc.pathItems[0];

alert(ipath.strokeOverprint);
June 30, 2011

The given code worked fine for pathItems. With regard to text items, the fillOverprint false is not getting applied.

Below is the code:

textArt=activeDocument.textFrames[1];
textArtRange=textArt.textRange;
numLines=textArtRange.words.length;

for(j=0;j<numLines;j++)
{
lineToExamine=textArtRange.words;  
lineToExamine.selected=true;
lineToExamine.fillOverprint=false;
}

Please let me know why the code is not executed.

regards,

Sashi

CarlosCanto
Community Expert
Community Expert
June 30, 2011

Hi Sashi, textFrames use a different property. A couple of things, you don't need to select anything to work on it.

textArt=activeDocument.textFrames[0];
textArtRange=textArt.textRange;
numLines=textArtRange.words.length;

for(j=0;j<numLines;j++)
{
lineToExamine=textArtRange.words
//lineToExamine.selected=true;
//alert(lineToExamine.contents);
//alert(lineToExamine.characterAttributes.overprintFill);
//lineToExamine.fillOverprint=false;
lineToExamine.characterAttributes.overprintFill = false;
}

the other thing is that if you're setting every word to false, then setting the whole texetFrame to false will suffice

textArt=activeDocument.textFrames[0];
textArt.textRange.characterAttributes.overprintFill = false;