Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
5

PDF force hyperlinks open in new tab if is viewed in any browser

Community Beginner ,
Dec 18, 2023 Dec 18, 2023

Hello I know this problem is from past.
I know I need insert JavaScript action app.launchURL("https://yourlink.com", true); 

But it's not working on all browsers.
My Client demand this and I cannot do anything in InDesign or Acrobat 😞

This is very sad because this issue is very old and a lot of people demand this feature.

If anyone know tool or which code in JavaScript Action will work in any browser please share with me this knowladge.  Even ChatGPT-4 in Edge don't know solution 😄

Best,
Vladimir

TOPICS
How to , JavaScript , PDF
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Dec 18, 2023 Dec 18, 2023

You can't do it, since most browser PDF plugins don't support scripts at all, or a very minimal subset.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2023 Dec 18, 2023

You can't do it, since most browser PDF plugins don't support scripts at all, or a very minimal subset.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 28, 2023 Dec 28, 2023

Thanks! So best way to count on human knowladge Ctrl + R click.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 28, 2023 Dec 28, 2023

I don't think that will work in a PDF file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 28, 2023 Dec 28, 2023

No in browser if you open browser file in browser Ctrl + R click open in new tab in browser clicked link in PDF. You can modify in Acrobat/File/Settings how open hyperlinks 😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 28, 2023 Dec 28, 2023
LATEST

No I am talking about browser. If you open PDF file in browser Ctrl + R click makes to open in new tab hyperlinks.  You can modify in Acrobat/File/Settings how open hyperlinks through Acrobat Reader. But I am talking here about how force browser to open hyperlinks in new tab from opened PDF in browser. lol It's to complicated I dont't know how properly ask question 😉

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines