Skip to main content
Anantha Prabu G
Legend
July 13, 2024
Answered

Changing Text Field(create from buttons and forms) Height using InDesign Scripting?

  • July 13, 2024
  • 2 replies
  • 757 views

Hi everyone,

I'm working on a project in Adobe InDesign where I need to dynamically adjust the height of textFields (create from buttons and forms) using scripting. I've explored the scripting documentation but haven't found a straightforward way to achieve this. Could someone please guide me on how to modify the height of atextFields (create from buttons and forms) programmatically in InDesign? Any examples or pointers would be greatly appreciated!

Thanks in advance!

This topic has been closed for replies.
Correct answer Willi Adelberger

Why scripting?

use an appropriate object style. 

2 replies

Willi Adelberger
Community Expert
Willi AdelbergerCommunity ExpertCorrect answer
Community Expert
July 13, 2024

Why scripting?

use an appropriate object style. 

Anantha Prabu G
Legend
July 13, 2024

Thank you @Willi Adelberger 

Design smarter, faster, and bolder with InDesign scripting.
Robert at ID-Tasker
Legend
July 13, 2024

You need to modify geometricBounds property of the TextFrame.

 

And you should correct title of you post - "text field" - used in interactive PDFs - is something completely different than "text frame". 

 

Anantha Prabu G
Legend
July 13, 2024

Thanks for your response.

I have created the script to change the height of the text frame, and it is working perfectly. But I need to change the text fields (created from buttons and forms) height size.

Design smarter, faster, and bolder with InDesign scripting.
Robert at ID-Tasker
Legend
July 13, 2024