Copy link to clipboard
Copied
Hello,
Does anyone know how to access and change the name of a hyperlink group?
By a hyperlink group, I mean the group that hyperlinks are put into when they have the same destination.
I tried hyperlink.parent but this always returns [object Document].
Thanks,
Jake
Copy link to clipboard
Copied
If anyone's interested, I just found out that this is the hyperlink destination name property.
So I did this:
hlSource = doc.
paragraphDestinations.add ( destination );
hlSource.name = name
;
You should check that the destination is duplicated before doing this though
Copy link to clipboard
Copied
Hyperlinks don't have groups. What looks like a group is simply two or more text sources pointing to the same destination. It's vaguely comparable with what you see in the Links panel when you place two or more pages from the same PDF.
Peter