简体   繁体   中英

How can I create a real link annotation in Adobe Acrobat using Acrobat Javascript

I want to run an Acrobat Javascript inside of Adobe Acrobat. In that script I want to create a link annotation.

This can be done easily enough, but using the "addLink" function in the document object, but this type of link only works with a Javascript action. In other words, when the link is clicked, a piece of Javascript is executed by Acrobat to jump to a new location or URL.

This is not what I want, what I want is to create a Link annotation that contains a simple URL, and not an action Javascript.

Is this possible using the Adobe Acrobat API? And if so, how?

(please don't suggest using a plug-in, I know about Acrobat plug-ins but that's not what I'm looking for right now).

Without further digging around in the documentation, I don't see a way to programmatically add an Action to a link; all I get is a JavaScript action (which could make use of, of course, getURL() or launchURL() ).

There might be a two-step process, which uses FDF to inject the action, but I am not positively sure whether it would work with links, but only with form fields.

Acrobat JavaScript API无法实现。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM