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

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

Community Beginner ,
Feb 11, 2018 Feb 11, 2018

Copy link to clipboard

Copied

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

text frame into indd file,,

pleas help me.

TOPICS
Scripting

Views

848

Translate

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

Copy link to clipboard

Copied

Moving to InDesign Scripting forum

Votes

Translate

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

Copy link to clipboard

Copied

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.

Votes

Translate

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