Skip to main content
Inspiring
August 20, 2013
Question

Index Page number linking

  • August 20, 2013
  • 0 replies
  • 435 views

Hi

I am beginner of script plese help me creating a script for index page nymber linking,

wheen i create a pdf an index page number create with page link. If i clink the page number in pdf it will go to containing page. i have insert some commend for your reference. these reference create a page ling but did not go to containing page please correct my script needfuly.

var myDoc = app.activeDocument;
app.findTextPreferences = null;
app.changeTextPreferences = null;
app.findTextPreferences.findWhat = "^9";
var myLinks = myDoc.findText();
var myPage = myLinks;

for (i = 0; i < myLinks.length; i++){
   myLink = myLinks;
   mySource = myDoc.hyperlinkTextSources.add(myLink);
   myDestination = myDoc.hyperlinkPageDestinations.add(myPage + myLink.contents);
   myDestination.destinationPageIndex = eval(myLink);
   myDoc.hyperlinks.add(mySource, myDestination);
}

Thaks

and waiting for yor rly.....................

This topic has been closed for replies.