Seeking help with determining the geometric bounds of text inside hyperlinks in an InDesign document. I've tried to do this using ExtendScript but haven't had any luck.
// Loop through and export hyperlinks in the document
for (k = 0; k < myDocument.hyperlinks.length; k++) {
// Get the hyperlink
var myHyperlink = myDocument.hyperlinks[k];
// Verify that the source is a text item
if (myHyperlink.source instanceof HyperlinkTextSource) {
// Need to find the geometric bounds of text within the link
}
}
If anyone has suggestions on how I can achieve this, please let me know. Using Adobe InDesign CS5 for reference.