Copy link to clipboard
Copied
Hi,
I need to get font styled text. It may be applied using character styles or formatting. How can fetch those words from document??
var fntStyles = app.activeDocument.stories.everyItem().textStyleRanges.everyItem().fontStyle;
Using the above line can i get all fonts style which are applied in document?? both using styles and manually?
Copy link to clipboard
Copied
There are some exceptions with GREP styles, but basically, yes.
For stories. That will not include footnotes and text in text cells of tables.
Regards,
Uwe
Copy link to clipboard
Copied
Hi,
I need to get from tables, footnote, any group box and etc... How can can i get those also?
Copy link to clipboard
Copied
Hm…
I would start perhaps with a GREP find with a pattern like: \X+ where footnote search is enabled and then extract the textStyleRanges from the resulting texts by looping every single element of the result array.
Regards,
Uwe
Copy link to clipboard
Copied
Hi,
Sorry for late reply...
I have processed tables using table cell's paragraphs using textstyleranges. when I check, footnote and groups boxes are as normal textstyleranges. So used the normal running text's code for footnote.