1 Reply Latest reply on May 10, 2008 10:51 AM by (Dave_Saunders)

    Adding columns to text frame

    Level 1

      I am new to javascript. i need to add a text frame in my page and make the text frame into two column. can any one help me to do it in javascript.
        • 1. Re: Adding columns to text frame
          Level 1
          myTF = myPage.textFrames.add();
          myTF.textFramePreferences.textColumnCount = 2;

          That does exactly what you asked (although it might cause an error on the second line because the frame is not likely to be big enough for two columns). You need to size and position the frame first by setting its geometric bounds to what you want.