Copy link to clipboard
Copied
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!
Why scripting?
use an appropriate object style.
Copy link to clipboard
Copied
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".
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Form Field:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#FormField.html
Text Box:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#TextBox.html
Anyway - they both have geometricBounds property.
Copy link to clipboard
Copied
Why scripting?
use an appropriate object style.
Copy link to clipboard
Copied
Thank you @Willi Adelberger