Highlighted

How to get number string of a paragraph?

Community Beginner ,
Dec 02, 2018

Copy link to clipboard

Copied

Hi

In ExtendScript, how do I get a string representing heading numbers of a paragraph, such as "8.2.2" from "8.2.2 Clock properties" subsection?

Many thanks

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

If pgf is your paragraph object, you use pgf.PgfNumber

TOPICS
Scripting

Views

170

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

How to get number string of a paragraph?

Community Beginner ,
Dec 02, 2018

Copy link to clipboard

Copied

Hi

In ExtendScript, how do I get a string representing heading numbers of a paragraph, such as "8.2.2" from "8.2.2 Clock properties" subsection?

Many thanks

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

If pgf is your paragraph object, you use pgf.PgfNumber

TOPICS
Scripting

Views

171

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
Dec 02, 2018 0
Adobe Community Professional ,
Dec 02, 2018

Copy link to clipboard

Copied

If pgf is your paragraph object, you use pgf.PgfNumber

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...
Dec 02, 2018 0
Community Beginner ,
Dec 03, 2018

Copy link to clipboard

Copied

Ah, I got it. Thank you.

I've searching for a paragraph's atrribute telling its location/range in the document, but not found any.

Is there anything like that?

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...
Dec 03, 2018 0
Adobe Employee ,
Dec 14, 2018

Copy link to clipboard

Copied

Hm. That sounds like something completely different from what you were asking for.

Maybe you want to post that as a separate thread? If the answer from frameexpert​ answered your initial question, it would be great if you could mark it as “Correct Answer” so that we  an close this thread 🙂

Thanks,

Stefan

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...
Dec 14, 2018 0
Community Beginner ,
Dec 14, 2018

Copy link to clipboard

Copied

I just did it. Thank you.

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...
Dec 14, 2018 1