Skip to main content
Participating Frequently
August 18, 2022
Answered

Batch change link appearance?

  • August 18, 2022
  • 1 reply
  • 687 views

Is there a way to change the appearance of multiple links at one time? An overall setting/preference for link appearance? Specifically looking to change link type from 'visible rectangle' to 'invisible rectangle'. It's painstaking to edit every single link individually.

This topic has been closed for replies.
Correct answer try67

You can do it using this code:

 

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].borderWidth = 0;
	}
}

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
August 18, 2022

You can do it using this code:

 

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].borderWidth = 0;
	}
}
Participating Frequently
August 22, 2022

Thank you! I'm not very familiar with javascript (just enough to be able to run that or put it in an action). Would you be so kind as to help me understand what parts of that I need to edit to make it work for my document?

try67
Community Expert
Community Expert
August 22, 2022

Don't edit anything. Run it as-is.