Skip to main content
July 19, 2018
Answered

How to create a jump menu in pdf

  • July 19, 2018
  • 1 reply
  • 1963 views

Hi, I don't know if I'm using the correct terms or not but I have a pdf document that has a figure at the end and several figure references throughout the text and I need to be able to link to the figure from each figure reference (which I know how to do) and then link back to wherever the user was when they jumped to the figure (which is the part I can't figure out).  Since there are multiple reference points in the text how can I set up a hyperlink from the figure to the reference point where the user last was when they jumped to the figure?

Any help would be most appreciated.  Thank you.

This topic has been closed for replies.
Correct answer try67

Set the Back button to execute this JavaScript code when clicked:

app.execMenuItem("GoBack");

1 reply

try67
try67Correct answer
Community Expert
July 19, 2018

Set the Back button to execute this JavaScript code when clicked:

app.execMenuItem("GoBack");

July 19, 2018

Thank you for the quick reply! 

I've never added javascript to a pdf before.  Can you give me some idea how to go about it?  I tried making a script with the code you shared but I'm getting a syntax error about a missing ( before formal parameters at line 2.  I have no idea how to fix it or attach it to the back button.  Any further help would be most appreciated.

try67
Community Expert
July 19, 2018

That should not happen if you copy and paste the code I provided without making any changes to it.