Skip to main content
ajabon grinsmith
Community Expert
Community Expert
January 28, 2022
Question

Add script to all hyperlinks

  • January 28, 2022
  • 2 replies
  • 932 views

Hi there, 

I exported a PDF containing bookmarks and hyperlinks created in InDesign, edited all hyperlinks in Acrobat DC, and added the script "this.zoom = 100;"  Even though it was preconfigured in InDesign, it was not reflected in the PDF.
Now I have to double-click on all the hyperlinks one by one to add them. It is very hard. My fingers are getting tired. and I 'm so bored.
Naturally, I wondered if I could automate this, so I researched for three days. But I couldn't find an answer.
Is it possible?


Translated with www.DeepL.com/Translator (free version)

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
January 28, 2022

You can set all bookmarks zoom at one time by selecting all: right-click: Properties.

But 100% is not available, only relative zooms are available.

 

Acrobate du PDF, InDesigner et Photoshopographe
ajabon grinsmith
Community Expert
Community Expert
January 28, 2022

The bookmarking was accomplished with the Action Wizard.
I want to add a script to the "hyperlink".

try67
Community Expert
Community Expert
January 28, 2022

It's not possible with a script. I mean, it is possible, but it will overwrite any other actions you have applied to your links, so that's probably not what you want to do.

It might be possible using an external tool, though, or maybe even a plugin. What type of action did you set for these links?

ajabon grinsmith
Community Expert
Community Expert
January 28, 2022

Thanks for the response, all hyperlinks are to jump to any page of the PDF itself.

try67
Community Expert
Community Expert
January 28, 2022

In that case it can be done using a stand-alone tool, like this (paid-for) one I've created:

https://www.try67.com/tool/batch-edit-links-zoom-level