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

how script get dimensions(hieght and width) text frame when place page.

Community Beginner ,
Feb 11, 2018 Feb 11, 2018

how script get dimensions(hieght and width) text frame when  place page.

text frame into indd file,,

pleas help me.

TOPICS
Scripting
906
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 ,
Feb 11, 2018 Feb 11, 2018

Moving to InDesign Scripting forum

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
Engaged ,
Feb 11, 2018 Feb 11, 2018
LATEST

afaik, there are no width and height properties but if you select a text frame and run this script:

app.selection[0].geometricBounds;

you'll get an array in the form [y1,x1,y2,x2], so the height is y2-y1, the width is x2-y1

not sure what you mean when you say "when place page..." but it is possible to attach event listener functions to a menu event.

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