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

textFrame contents

New Here ,
Jan 12, 2011 Jan 12, 2011

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

TOPICS
Scripting

Views

498
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
community guidelines
Adobe
New Here ,
Jan 12, 2011 Jan 12, 2011

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 ?

Votes

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
community guidelines
Community Expert ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

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)

Votes

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
community guidelines