Reg. Place image in textframe
HI All,
I have been struggling lot to place an image near to the find text. From the below code snippet I could place the image but it is placing in anchor frame.
Since the image in anchor frame, the text wrap preferences could not apply.
var myFoundItems = new Array;
var mydoc = app.activeDocument;
app.findTextPreferences = null;
app.findTextPreferences.findWhat = "<F1><\F2>";
myFoundItems = app.activeDocument.findText();
for (var i = 0; i < myFoundItems.length; i++)
{
var myFile = File(myFilteredimages); // Array contains images - myFilteredimages
if(myFile.exists)
{
myFoundItems.place(myFile);
}
}
I do not want to place the image in anchor frame, Please help me out in this.
Thank a lot.
Regards,
Sathya Rani M