Skip to main content
Participant
Apr 29, 2022 9:56 AM UTC
Question

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

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?

12 replies

tessat89053683
Participant
Jul 23, 2024 10:05 AM UTC

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!

Translate
Gene77
Participant
Oct 3, 2024 12:22 AM UTC

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.

Translate
Participant
Oct 15, 2024 1:33 PM UTC

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?

Translate
JR Boulay
Community Expert
Community Expert
May 2, 2022 7:48 AM UTC

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Participant
Aug 9, 2022 8:08 AM UTC

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

Translate
JR Boulay
Community Expert
Community Expert
Apr 29, 2022 12:30 PM UTC

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

app.openInPlace = false;

 

 

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Participant
Apr 29, 2022 1:35 PM UTC

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.

Translate
Bernd Alheit
Community Expert
Community Expert
Apr 29, 2022 11:55 AM UTC

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

Translate
Participant
Apr 29, 2022 1:19 PM UTC

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

Thank you.

Translate
Participant
Jul 23, 2024 9:55 PM UTC

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. 

Translate