Skip to main content
Participant
January 12, 2011
Question

textFrame contents

  • January 12, 2011
  • 1 reply
  • 535 views

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

This topic has been closed for replies.

1 reply

Pxl_frAuthor
Participant
January 12, 2011

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 ?

CarlosCanto
Community Expert
Community Expert
January 13, 2011

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)