Copy link to clipboard
Copied
Hi,
I wrote a script that loops over all graphics in an indesign document and resizes them to the width of the textframe. I do this by finding out the width of the parent textframe. But some of the documents contain textframes that have two coulmns, so I need to find out the width of those columns to resize the graphics correctly.
Is there a way to find out the width of the textframe-column in which a graphic is placed ?
2 Correct answers
columnwidth = frame.textFramePreferences.textColumnFixedWidth
You can find most of these things in DOM overviews. You can use the ESTK's object-model viewer, or use extracted versions such as https://www.indesignjs.de/extendscriptAPI/indesign-latest/#about.html
frame.textFramePreferences.textColumnGutter
Copy link to clipboard
Copied
columnwidth = frame.textFramePreferences.textColumnFixedWidth
Copy link to clipboard
Copied
Thank you. Can I also access the value for the space between the two columns or do I have to calculate this ?
Copy link to clipboard
Copied
You can find most of these things in DOM overviews. You can use the ESTK's object-model viewer, or use extracted versions such as https://www.indesignjs.de/extendscriptAPI/indesign-latest/#about.html
frame.textFramePreferences.textColumnGutter

