textFrame contents
Copy link to clipboard
Copied
Hello Everybody ,
i'm trying to have access to the contents of a textrame > Eveything working fine for the basic text. But i have like white space , several lines or subscript it's not perfect i don't have acces to all of this.
Anyone know a way to have acces a lowe level content textframe , with html or whatever.
Thanks ,
PXL
Explore related tutorials & articles
Copy link to clipboard
Copied
I almost find something intersting.
If i use the .toSource() method on a textframe.contents it return me a unicode string. The matter is i don't want the string constructor and the sub/supscripts are not show neither.
Any ideas ?
Copy link to clipboard
Copied
Check the BaselinePosition property in the CharacterAtributes Object
I made some testing and found that mixed character attributes (Normal and superScript for example) in a textFrame return 0 (NormalBaseline). Checking each character in a textFrame did returned 0s and 1s (1 = SuperScriptBaseline)

