These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Creating links with javascript

Registered: Jun 20 2010
Posts: 11
Answered

Hi,

Newby, so sorry if the question is stup*...?

1.
Is it posiblle to automatically select all the links (that already exists in opened PDF) document and copy/paste them to another PDF document to the same position/coordinates as it was in original PDF with javascript?

2. - *If the point 1. is not possible
Is it posiblle to automatically create the link in upper/left corner of PDF with javascript for all PDFs in selected folder?

Br,

My Product Information:
Acrobat Pro 9.3.1, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2399
The links that can be created with a script are not the same as links created manually.
The biggest difference is that a script-created link can only have Execute a JavaScript as its action. Also, JS is not capable of revealing what a link does: which URL it points to, which script it will launch, etc.

Considering this I would say that point 1 is not possible with a script.
Point 2 is possible, but the links created will have to launch a JS, like I mentioned earlier.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Registered: Jun 20 2010
Posts: 11
Hi,

thanks for quic reply.

The original PDFs already have manually created links (with url...), with javascript i would just like to: select all links in originall PDF (opened in Acrobat), copy and then paste in second opened PDF.
try67
Expert
Registered: Oct 30 2008
Posts: 2399
That can't be done.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com