Skip to main content
daitranthanhoa
Inspiring
Feb 6, 2018 2:49 AM UTC
Question

How set action type , if add a link?

I add a link to Page by JS:

l = addLink(p, [r2[4], r2[5], r2[2], r2[3]]);

l.borderColor = color.red;

l.borderWidth = 1;

l.setAction("this.pageNum = " + dctPageName[iPageGoto] );

Type of Action is: Run a Javascript:

How can set type of Action is [Go to a page in docment]?

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

try67
Community Expert
Community Expert
Feb 6, 2018 9:50 AM UTC

You can do it using this tool I've developed: Custom-made Adobe Scripts: Convert JavaScript Links To Real Links

Translate
Joel Geraci
Community Expert
Community Expert
Feb 6, 2018 3:03 AM UTC

You can't.

The only Actions you can add via JavaScript is "Run a JavaScript". However, if you create a bookmark manually that goes to a specific page and view, you can execute the bookmark via JavaScript.

Translate
daitranthanhoa
Inspiring
Feb 6, 2018 3:12 AM UTC

Exist any solutions can process?

or other Libs?

Translate
Joel Geraci
Community Expert
Community Expert
Feb 6, 2018 3:15 AM UTC

Just about every PDF library tool will be able to create a link that is capable of setting any of the various link types. The one you choose depends on the platform, language, and price point you are comfortable with.

Translate