2 Replies Latest reply on Feb 12, 2013 6:19 AM by rajnikids

    remove overprint to ContentType.unassigned


      Hi Forum,


      I have assigned remove overprint fill to "pageItems or splineItems but it is not working in the below case....


      How can i remove overprint Fill to contentType.unnassigned.  here is my script..


      var doc = app.activeDocument;

      var items = doc.pageItems;

      var list = []; // list of unassigned frames

      for (i = 0; i < items.length; i++) {

           if (items[i].contentType == ContentType.unassigned)

           items[i].overprintFill = false;



      The tick mark is placed as characer inside cell.  when selected by type tool no overprint is shown. but when it is selected as frame Overprint Fill is shown... please see the selected one inside image..

      Screen Shot 2013-02-12 at 10.39.50.gif



      also i tried in this method.....


      try {

      table =  app.activeDocument.stories.everyItem().tables.everyItem();

      tcolors =  table.cells.everyItem().everyItem();

      for (i = 0; i<tcolors.length; i++) {

      tcolor = tcolors[i];

      if (tcolor.fillColor.name == "Pantone 357") {

          tcolor.overprintFill = false;




      if (tcolor.fillColor.name == "Pantone 357") {

          tcolor.overprintFill = false;



             catch (e) {}






      many thanks & regards,

        • 1. Re: remove overprint to ContentType.unassigned
          rajnikids Level 1

          Again a point to add.. When it is cut and pasted from the table.


          the overprint is removed.


          var mydoc=app.documents.item(0);

          var myOPs=mydoc.pageItems;

          if (myOP.fillColor.name=="Pantone 357") {




          It seems the tickmark is converted to outline and placed inside the table cell...


          Forum,  anyway to remove overprint...



          • 2. Re: remove overprint to ContentType.unassigned
            rajnikids Level 1

            Atlast, i found it.... here is the result!



            var myDocument = app.documents.item(0);

            app.findObjectPreferences = NothingEnum.nothing;

            app.changeObjectPreferences = NothingEnum.nothing;

            app.findObjectPreferences.overprintFill = true;

            app.changeObjectPreferences.overprintFill = false;


            app.findObjectPreferences = NothingEnum.nothing;

            app.changeObjectPreferences = NothingEnum.nothing;


            thanks Forum..