1 Reply Latest reply on Aug 10, 2011 1:31 PM by George_Johnson

    Getting URLs of Links in a PDF


      Hi all,


      I'm currently using Acrobat's built-in Javascript Debugging platform to locate all the links in a PDF document and pass of their rectangular coordinates and destination URLs to an InDesign document that creates buttons in the same locations. I've been able to find the locations for all the links in a PDF, but am still unable to find the URLs for each of these links. Does anyone have any ideas for how to find the URLs? I've included my javascript to find their locations below:


      var b = this.getPageBox('Crop', 0);
      var l = this.getLinks(0, b);
      var height = b[1]
      var final = b[1]
      for(var i = 0; i < l.length; i++) {
          l[i].borderWidth = 20;
          l[i].borderColor = color.green
          var final = final + " " + l[i].rect