Highlighted

Hyperlink the text to page using InDesign javascript

Community Beginner ,
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

Adobe Community Professional
Correct answer by Peter Kahrel | Adobe Community Professional

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);
TOPICS
Scripting

Views

50

Likes

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

Hyperlink the text to page using InDesign javascript

Community Beginner ,
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

Adobe Community Professional
Correct answer by Peter Kahrel | Adobe Community Professional

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);
TOPICS
Scripting

Views

51

Likes

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
Aug 23, 2020 0
Adobe Community Professional ,
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);

Likes

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
Reply
Loading...
Aug 23, 2020 2
Community Beginner ,
Aug 24, 2020

Copy link to clipboard

Copied

Thanks for your support!!!

Likes

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
Reply
Loading...
Aug 24, 2020 0