Highlighted

Hyperlinks Panel

Community Beginner ,
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

Adobe Community Professional
Correct answer by Laubender | Adobe Community Professional

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 )

TOPICS
How to, SDK

Views

31

Likes

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

Hyperlinks Panel

Community Beginner ,
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

Adobe Community Professional
Correct answer by Laubender | Adobe Community Professional

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 )

TOPICS
How to, SDK

Views

32

Likes

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
Sep 18, 2020 0
Adobe Community Professional ,
Sep 21, 2020

Copy link to clipboard

Copied

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 )

Likes

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
Reply
Loading...
Sep 21, 2020 0