0 Replies Latest reply on Jul 8, 2015 5:52 AM by mani@pixel

    how to move the text down, which is overlapping on the image..

    mani@pixel

      here iam trying to move the image on particular place and in that place, already i have some text... when i was moved the image to that place. text is overlapping on the image..

      i want that text to move down..Snap 2015-07-08 at 18.20.56.png

      using indesign javascript

      parainfo();

       

       

      function parainfo()

      {

          var doc = app.activeDocument;

        var allpara =   doc.stories.everyItem().paragraphs.everyItem().contents;

      // alert(allpara.length);

        var myfirstpara = doc.textFrames[2].paragraphs[0].contents;

      //   alert( myfirstpara.baseLine);

         var  img = doc.allGraphics;

      var para = doc.textFrames[2].paragraphs[1];

      alert(para.contents);

      //mydoc.textFrames[4].previousTextFrame = mydoc.textFrames[5];

      myString = app.selection[0].parentStory.contents;

      //alert(myString);

      for(j=0;j<img.length;j++)

      {

      myFound = myString.match(img[j].itemLink.name);

      //alert(img[j].itemLink.name);

      alert(myFound);

       

       

      if(img[j].itemLink.name == myFound)

          {

           

           img[j].parent.move([3,12]);

         // mydoc.textFrames[0].move([3,30]);

          alert(img[j].geometricBounds);

           }

      else

      {

           alert(false);

         

           }

      }