3 Replies Latest reply on Jan 6, 2017 2:19 AM by jakec88782761

    Hyperlink textFrame

    jakec88782761 Level 1

      Hi guys,

       

      I need my script to hyperlink a text frame but it tells me that I'm passing an invalid parameter to the add() method.

       

      I want the textFrame to be the source.

       

      var enFrame = doc.textFrames.add();

      enFrame.geometricBounds = ["120.022554524739mm","14.7056147051818mm","126.067663574219mm","133.294385294776mm"];

      for ( key in pageNumbers[0] ) {
         
          var enPage = (pageNumbers[0][key]);
         
          doc.hyperlinks.add( enFrame, {destinationPage: pages[enPage] } )
         
          }

       

      Any help would be great