• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Hyperlinks Panel

Explorer ,
Sep 18, 2020 Sep 18, 2020

Copy link to clipboard

Copied

How to get Source or its length using indesign sdk functions when hyperlink panel shows in the form of number(0.7006 like that).

In the below screenshot "13" is my source from text, but in hyperlinkpanel it shows .9007 And while reading using sdk function I got .9007 But I want "13" or its length 2.Is it Hidden? if yes then how to get source?

How to get that?bdskfv.png

TOPICS
How to , SDK

Views

193

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 21, 2020 Sep 21, 2020

Hi Madhuri,

what you see in the Hyperlinks panel is the name of the hyperlink.

 

What you need is in the source property of that hyperlink object.

Depending what kind of source it is, CrossReferenceSource or HyperlinkTextSource, you must go to property sourceText of that source property ( available for both flavors of source I mentioned ) and look for sourceText.contents.

 

In pseudo code:

document.hyperlink.source.sourceText.contents

 

All my descriptions are in ExtendScript terms.

Hope, you fi

...

Votes

Translate

Translate
Community Expert ,
Sep 21, 2020 Sep 21, 2020

Copy link to clipboard

Copied

LATEST

Hi Madhuri,

what you see in the Hyperlinks panel is the name of the hyperlink.

 

What you need is in the source property of that hyperlink object.

Depending what kind of source it is, CrossReferenceSource or HyperlinkTextSource, you must go to property sourceText of that source property ( available for both flavors of source I mentioned ) and look for sourceText.contents.

 

In pseudo code:

document.hyperlink.source.sourceText.contents

 

All my descriptions are in ExtendScript terms.

Hope, you find you way analog to it in the SDK.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines