Reply To: Active URLs for PDF and Ebook

Home Page / Forums / General InDesign Topics (CLOSED) / Active URLs for PDF and Ebook / Reply To: Active URLs for PDF and Ebook

#91752

It is not clear to me, how you create your hyperlinks and I’ve no idea, what the Chicago manual is ;-)

However: I can confirm the spaces in the hyperlinks panel. A little script can repair those blanks:

var allHyperlinks = app.activeDocument.hyperlinks;
var nHyperlinks = allHyperlinks.length;

for (var i = 0; i < nHyperlinks; i++) {
  var curHyperlink = allHyperlinks[i];
  var curStr = curHyperlink.destination.destinationURL.replace(/\x20/g,"");
  curHyperlink.destination.destinationURL = curStr;
}

Kai

This article was last modified on January 31, 2017

Comments (0)

Loading comments...