1 person found this helpful
It can't be done with JS, because, as you've noticed, it can not know what's the current action of the link.
I think it's possible with a plugin, though, but that is much more complicated to create.
I cannot understand why cannot be done. I found this same situation in many of my customers.
No one wants to change links decoration, but link URL mispell is often happening, and I am surprised why they (Adobe) has not figured out an easy way to remake them.
If this happened with an HTML file, it would be as simply as Find & Replace but here.... what a mess :-(
I cannot understand why cannot be done.
It can be done, with a plugin.
I agree that it doesn't make sense not to have this property in Acrobat JS, as well as many other things which are missing (or not working well).
But you should also be aware that there are very big differences between a PDF and a HTML file, which makes comparison between them irrelevant. The biggest two are that PDF is a binary, proprietary format and HTML is a plain-text, open format.
I want to change the destination links (quite more common and useful) and I have to buy a $499 plugin.
That is "great" (</ironic>)
Correct me (someone) if I am wrong, but what you say "try67" it may not be 100% true. I think that since Feb 2007 PDF format is no longer propietary, it became free...
Well, you're partially right. It's not "free", but it is "open". (beer vs. speech)
PDF is now an "Open" standard, yes (ISO32000-1;2008). But if you want an official copy of the PDF Specification from ISO, you do have to buy it from ISO (I believe it equates to approx USD$300, depending on the exchange rate with the Swiss franc).