2 Replies Latest reply on Jul 22, 2013 4:27 AM by Bill joy

    How insert image in TextFrame ?

    Bill joy Level 1

      Hi Experts


      I want to insert image in a textframe  which has extreme data (means a  + sign is exist on textframe boundary).

      My text length is 200 character. but in text fame only 100 character is visible.

      I want to insert image after 150 character from starting using script, but image is not insert.

      My Script is :-


      #target indesign

      var myDocument=app.activeDocument;



      var myTextFrame=myDocument.spreads.item(0).textFrames.item(1);

      var insertionPoint=myTextFrame.insertionPoints.item(150);

      //var TextFrame=insertionPoint.textFrames.add((myDocument.layers.item("Layer 1")));





          var k=0;



      If I increase the text frame sizes as much as that +sign remove or whole 200 character appear in textframe then image is insert in text frame.


      But I can not increase the text frame size.

      But I can create  a new textframe and then link this textframe with previous textframe.


      How insert image in this condition ?