Skip to main content
Participant
April 29, 2022
Question

Force links in PDF document to open in new tab or window for all viewers

  • April 29, 2022
  • 4 replies
  • 16629 views

I have a 45 page PDF report in which I've created several links to pages in the document and attachments.

I've discovered how to force the links to open in a new tab (in Preferences) for me but when the document is opened by others the link opens in the same window as the document requiring them to open the document again to continue reading.

Is there any way of forcing links to open in a new tab or window for everyone regardless of their Preference settings?

4 replies

tessat89053683
Participant
July 23, 2024

Hi, I have the same question but unfortunately the answer hasn't helped. I need an idiot proof guide please, I'm using the latest version of Acrobat 2024, which looks different to the answer below.
Thanks in advance!

Gene77
Participant
October 3, 2024

Hey Tessat,

JR gave me just enough information to get it sorted out between this post and another one he provided.

  1. Open PDF, look for All tools list and expand.

   

2. Click Use JavaScript.

   

3. Click on Document javascript strings.

4. Name your script and click Add.

5. In the Create and Edit JavaScripts field place the following:

        var a = app.openInPlace;
        app.openInPlace = false;

       

6. Click Ok and then Close to exit editor.

7. Click on Document actions.

8. Select Document Will Close and click Edit.

9. In the Create and Edit JavaScripts field place the following:

        app.openInPlace = a;

       

10. Click Ok and then OK to exit editor.

 

Now, save your document and it should now open links in the main PDF in new tabs.

Participant
October 15, 2024

I'm trying to do the same and have followed your instructions but the links are still not opening in a different window on the text links or buttons. Any ideas?

JR Boulay
Community Expert
Community Expert
May 2, 2022

Acrobate du PDF, InDesigner et Photoshopographe
Participant
August 9, 2022

hi Guys - I have Index.pdf which has hyperlinks to other pdf files ( A.pdf  B.pdf C.pdf etc) in the same folder.. when i click the link for A.pdf - both Adobe Reader and Adobe Pro close the index.pdf and open A.pdf in its place.

I do not want index.pdf to be closed, but have A.pdf , B.pdf , C.pdf to open in new tab or new window

 

is there a way to change behaviour of all hyperlinks in a PDF ?

 

I have used a create custom linsk from text Java tool

 

please help

JR Boulay
Community Expert
Community Expert
April 29, 2022

Place this script as Document level script to change user's preference.

app.openInPlace = false;

 

 

Acrobate du PDF, InDesigner et Photoshopographe
Participant
April 29, 2022

I'm always willing to learn new ways of doing things but have no experience of this type of thing.

I looked at your link but couldn't work out where 'd put the script.

Bernd Alheit
Community Expert
Community Expert
April 29, 2022

For some links you can specify this in properties of the links.

Participant
April 29, 2022

Excellent. I was able to specify the action for the links to be "Open in: new window" That's resolved the issue.

Thank you.

Participant
July 23, 2024

Where did you add or select "Open in: new window", please? I don't see that option anywhere. I have Acrobat Pro via my company's Creative Cloud account.