Acrobat Set new link window options
Hi All,
I have the requirements to set the URL links to set new window options in Acrobat. We generated the PDF from the InDesign file.
I tried the below codes, I but can set the specifier URL address, instead of the existing url address and set as the javascript options with the same address.
The beow codes works, but the "http://www.example.com/" this addres will set entire document hyperlinks url address.
for (var p=0; p<this.numPages; p++) {
var box = this.getPageBox("Crop", p);
var links = this.getLinks(p, box);
if (links==null || links.length==0) continue;
for (var i in links) {
links[i].borderColor = color.blue;
links[i].borderWidth = 2;
links[i].setAction("this.getURL('http://www.example.com/')");
//p.launchURL(event.target.valueAsString);
}
}
Before

Final requirement

thx,
csm_phil