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 b = this.getPageBox("Crop", 0);
var l = this.getLinks(0, b);
l.setAction("app.openDoc('" + desFile + "')", this);
If you know the solution, please reply.
Have you looked at the 'addLInk()' method in the Acrobat JS API?
You could also look at using 'theGetURL()' or 'launchURL()' methods.