Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

textFrame contents

New Here ,
Jan 12, 2011 Jan 12, 2011

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

TOPICS
Scripting
527
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Jan 12, 2011 Jan 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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2011 Jan 12, 2011
LATEST

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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines