Copy link to clipboard
Copied
Hi!
I'm stuck when trying to enable autosize options when scripting an object style.
I can change the settings inside of the option, but an unable to enable to option. Do you have ideas what line I'm missing?
Thanks!
Christopher
var myPlainTextObjectStyle = myDocument.objectStyles.add();
myPlainTextObjectStyle.properties = {
name: "Book Name Frame",
enableTextFrameBaselineOptions: true,
enableTextFrameGeneralOptions: true,
enableAnchoredObjectOptions: true,
enableFrameFittingOptions: true,
enableTextFrameAutosizeOptions: true,
enableParagraphStyle: true,
enableStoryOptions: true,
enableTextWrapAndOthers: true,
enabledStroke: true,
strokeWeight: 0,
textFramePreferences : {
autoSizingType: AutoSizingTypeEnum.HEIGHT_ONLY,
autoSizingReferencePoint:AutoSizingReferenceEnum.TOP_CENTER_POINT
},
textWrapPreferences: {
textWrapMode: TextWrapModes.JUMP_OBJECT_TEXT_WRAP
}
}
Hi,
Use this.
enableTextFrameAutoSizingOptions: true;
Thanks
Prabu
Copy link to clipboard
Copied
Hi,
Use this.
enableTextFrameAutoSizingOptions: true;
Thanks
Prabu
Copy link to clipboard
Copied
Not sure why the above my post being moderated?
Copy link to clipboard
Copied
Thanks!!