Highlighted

How to highlight my hyperlinks?

New Here ,
Jul 02, 2020

Copy link to clipboard

Copied

I have a pdf file with many hyperlinks, all of them work well when clicking on them, also the hand icon appears when hovering on them, but they are not highlighted so users do not notice them.

 

I can highlight them one by one right-clicking on them > Edit Link > Link Type == Visible rectangle & Color == blue but this is not efficient.

 

Example:

In the following text the red-underlined text are hyperlinks and work well, the 1st one is intuitive because it has url nomenclature, but the 2nd one is not noticeable:

 

rubenper_0-1593679052869.png

 

I am looking for a way to highlight all my hyperlinks automatically.

 

I am using Adobe Acrobat Pro DC. 

PDF Version: 1.4 (Acrobat 5.x)

 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

You can use this code to edit all the links in the file in this way:

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 = 1;
	}
}

 

And since you have Acrobat Pro you can even use it in an Action to process all the links in multiple files in a single process.

 

PS. You should post your questions in the Acrobat forum in the future...

Topics

Edit and convert PDFs, How to

Views

101

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to highlight my hyperlinks?

New Here ,
Jul 02, 2020

Copy link to clipboard

Copied

I have a pdf file with many hyperlinks, all of them work well when clicking on them, also the hand icon appears when hovering on them, but they are not highlighted so users do not notice them.

 

I can highlight them one by one right-clicking on them > Edit Link > Link Type == Visible rectangle & Color == blue but this is not efficient.

 

Example:

In the following text the red-underlined text are hyperlinks and work well, the 1st one is intuitive because it has url nomenclature, but the 2nd one is not noticeable:

 

rubenper_0-1593679052869.png

 

I am looking for a way to highlight all my hyperlinks automatically.

 

I am using Adobe Acrobat Pro DC. 

PDF Version: 1.4 (Acrobat 5.x)

 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

You can use this code to edit all the links in the file in this way:

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 = 1;
	}
}

 

And since you have Acrobat Pro you can even use it in an Action to process all the links in multiple files in a single process.

 

PS. You should post your questions in the Acrobat forum in the future...

Topics

Edit and convert PDFs, How to

Views

102

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 02, 2020 0
Most Valuable Participant ,
Jul 02, 2020

Copy link to clipboard

Copied

Highlight in the original document. Too late once it’s a PDF. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 02, 2020 0
Most Valuable Participant ,
Jul 04, 2020

Copy link to clipboard

Copied

You can use this code to edit all the links in the file in this way:

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 = 1;
	}
}

 

And since you have Acrobat Pro you can even use it in an Action to process all the links in multiple files in a single process.

 

PS. You should post your questions in the Acrobat forum in the future...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 04, 2020 0
rubenper LATEST
New Here ,
Jul 10, 2020

Copy link to clipboard

Copied

this worked great, thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 10, 2020 0