Skip to main content
Paulinafrica
Participant
October 21, 2020
Answered

How to create a link to an attachment within a pdf

  • October 21, 2020
  • 1 reply
  • 5552 views

Hello Adobe Community

I have attached a file to a pdf document (kmz file).

I have saved it so that the pdf opens with the attachments navigation tab open by default, that attachment is visible in the attachments pane.

I would like to create a link on a page that links to that particular attachment in the pdf.

The idea being that when you click on the link on the page it will open the attachment in Google Earth.

 

Thanks

Paul

 

    Correct answer try67

    This requires using a script, since the attached file is not a PDF. You can use the following code:

     

    this.exportDataObject({cName: "MyFile.kmz", nLaunch: 2});

     

    (replace MyFile with the actual file name, of course)

    1 reply

    try67
    Community Expert
    try67Community ExpertCorrect answer
    Community Expert
    October 21, 2020

    This requires using a script, since the attached file is not a PDF. You can use the following code:

     

    this.exportDataObject({cName: "MyFile.kmz", nLaunch: 2});

     

    (replace MyFile with the actual file name, of course)

    Paulinafrica
    Participant
    October 21, 2020

    Hello @try67 

    Thank you very much for the prompt response and most importantly the solution!

    This works 100% and was exactly what I was looking for.

    Thanks

    Paul