Skip to main content
Known Participant
July 8, 2015
Question

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

  • July 8, 2015
  • 0 replies
  • 185 views

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..

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.itemLink.name);

//alert(img.itemLink.name);

alert(myFound);

if(img.itemLink.name == myFound)

    {

     

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

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

    alert(img.geometricBounds);

     }

else

{

     alert(false);

   

     }

}

This topic has been closed for replies.