2 Replies Latest reply on Sep 6, 2009 4:26 PM by gkaiseril

    Change link properties (Rename file name)

    sudar1983_14 Level 2

      Hi All,

       

      As usual, I am new to Acrobat Scripting, but I have a good knowledge in InDesign Scripting.

       

      I have project about changing the link attribute.

       

      What i want to do is, I have a book along with chapters, Now i want to rename all the chapter names. If i rename the file name then i want to change the pdf link also. The following code will work almost, but onething i want to rectify.

       

      var numLinks=0;

      var desFile='D:\\1.pdf';

      var b = this.getPageBox("Crop", 0);

      var l = this.getLinks(0, b);

      l[0].setAction("app.openDoc('" + desFile + "')", this);

       

      If you run this code using javascript, you get a link but the property is set as javascript. Here i want to set as open a file.

       

      If you know the solution, please reply.

       

       

      Sudar.