I'm trying to write an ExtendScript script for InDesign to automatically generate a catalogue, which will be based on an inputted XML file.
As by now, I'm defining different page types for different types of product (e.g. a 5-column page for different components, a 8-column page for the product with multiple colour options, etc.), and I do so by first placing a text frame with an object style applied.
This object style has auto-sizing option active (in this way, shorter tables won't occupy an entire page, while frames with longer tables won't have overflow text).
For a specific page type, I need to:
- read the
geometricBounds
of the textframe, to store its height in a variable; - unset the auto-sizing option (otherwise, any change in size won't be effective);
- set a new, calculated, height, by changing the
geometricBounds
.
I'm having trouble with the second step, because I don't know which is the correct method/property/function to recall to change this setting.