Skip to main content
UltraMax
Inspiring
June 9, 2016
Answered

Can't Link Attached Image file to a Text Inside PDF File

  • June 9, 2016
  • 1 reply
  • 1283 views

Hello Friends, I have a problem, I played whole the day and couldn't solve it (Can't believe that Acrobat DC Can't fulfill or solve this task).

So My problem is: (I'll Describe what I want to do).

I created a PDF document (Just for testing Purposes) with sample texts in it "Text 1, Text 2, Text 3"

Then attached 3 images "Image 1, Image 2, Image 3" and one "Test PDF page from attachment panel, everything is OK, but from here begun my problem.

I could not make link for these attached image files (There is neither option nor choice).

I needed to link image 1 from attachment to a "Text 1", but it's impossible... (I can link PDF file from attachment without any problem)

While playing i found something like solution (But this is not a solution), I found Comments tool and from it I was able to attach a image...

So what to do how can i link an image files to a text in PDF document (as it does with PDF files).

Is it Acrobat Bug or just lacks that function?

Thank you In Advanced!

This topic has been closed for replies.
Correct answer try67

Actually, it can be done, but it's unnecessarily complicated. You need to use a JavaScript script to do it, like this one:

this.exportDataObject({cName: "NameOfImage.jpg", nLaunch: 2});

Just adjust the name of the image file to the one used in your document and it should work.

1 reply

try67
try67Correct answer
Community Expert
June 9, 2016

Actually, it can be done, but it's unnecessarily complicated. You need to use a JavaScript script to do it, like this one:

this.exportDataObject({cName: "NameOfImage.jpg", nLaunch: 2});

Just adjust the name of the image file to the one used in your document and it should work.

UltraMax
UltraMaxAuthor
Inspiring
June 9, 2016

Hello Dear MVP, Thanks for your quick answer..

Can you give the step by step procedure (I just pasted this java code in actions, but does nothing), I thing I'm making mistakes... I really need this. Please Help

Thanks In Advanced!

P.S. If you have some sample demo PDF would be great too.

try67
Community Expert
June 9, 2016

After creating your link select the Action as "Custom link":

Then select "Run a JavaScript" as the Action type and click on Add...

Paste the code into the window that opens and click OK:

Now click OK again to close the link dialog and you're done.