Copy link to clipboard
Copied
Hi Everyone,
How to Hyperlink the text to page using InDesign javascript.
Please help me!!!
Thanks,
Magesh
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);
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);
Copy link to clipboard
Copied
Thanks for your support!!!