Answered
Is it possible to change the properties of all links in a document such as border color and whether they are boxes or underlines?
I have looked at examples of how to create links using addLink and set thier properties when each link is created but I'm not seeing just how to access a link that allready exists.
Can anyone point me in a direction on how to set link properties?
for ( var p = 0; p < this.numPages; p++) {
var b = this.getPageBox("Crop", p);
var links = this.getLinks(p, b);
for (var a in links) {
links[a].borderColor = color.blue;
links[a].borderWidth = 1;
links[a].highlightMode = "Outline";
}
}
Note that in Acrobat a link can have a rectangular border or not, and an on-click highlight or not, but it cannot have an underline - that's something created by the original authoring application.