I add a link to Page by JS:
l = addLink(p, [r2, r2, r2, r2]);
l.borderColor = color.red;
l.borderWidth = 1;
l.setAction("this.pageNum = " + dctPageName[iPageGoto] );
How can set type of Action is [Go to a page in docment]?
Exist any solutions can process?
or other Libs?
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.
Where link can buy?
If you really need to use link annotations, a plug-in that works with Acrobat is AutoBookmark: AutoBookmark™ Plug-in for Adobe® Acrobat® / Linking Functionality
It allows you to import a data file that creates links and actions.
Hey George, That's a brilliant methodology !! You could actually write the FDF file with JS, given a set of destination parameters. I wonder if there is a way to use the FDF to generate named destinations? That would be awesome.
I solved this issue by writing a plug-in to convert links. Much more direct.
George: That's a brilliant idea. I love it!