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

Hyperlink the text to page using InDesign javascript

Explorer ,
Aug 23, 2020 Aug 23, 2020

Copy link to clipboard

Copied

Hi Everyone,

How to Hyperlink the text to page using InDesign javascript.

Mageshwaran_0-1598190129589.png


Please help me!!!

 

Thanks,
Magesh

TOPICS
Scripting

Views

581

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Aug 23, 2020 Aug 23, 2020

Select some text. The following script creates a hyperlink from that text to the document's last page.

theText = app.selection[0];
source = app.documents[0].hyperlinkTextSources.add (theText);
target = app.documents[0].hyperlinkPageDestinations.add (app.documents[0].pages[-1]);
app.documents[0].hyperlinks.add (source, target);

Votes

Translate

Translate
Community Expert ,
Aug 23, 2020 Aug 23, 2020

Copy link to clipboard

Copied

Select some text. The following script creates a hyperlink from that text to the document's last page.

theText = app.selection[0];
source = app.documents[0].hyperlinkTextSources.add (theText);
target = app.documents[0].hyperlinkPageDestinations.add (app.documents[0].pages[-1]);
app.documents[0].hyperlinks.add (source, target);

Votes

Translate

Translate

Report

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
Explorer ,
Aug 24, 2020 Aug 24, 2020

Copy link to clipboard

Copied

LATEST

Thanks for your support!!!

Votes

Translate

Translate

Report

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