Skip to main content
dublove
Legend
July 20, 2026
Question

Can't textWrapOffer be written in myObjStyle.textWrapPreferences-propelity?

  • July 20, 2026
  • 2 replies
  • 26 views

Hello everyone.

I want to group scattered attributes together.

Can I only write like this:

textWrapPreferences.textWrapOffset = [2, 2, 5, 5];

But can't it be like this? The one below seems invalid:

myObjStyle.textWrapPreferences.properties = {
textWrapMode: TextWrapModes.BOUNDING_BOX_TEXT_WRAP,
textWrapOffset: [2, 2, 5, 5],
}

 

    2 replies

    Abhishek Rao
    Community Manager
    Community Manager
    July 20, 2026

    Hi ​@dublove,

     

    Thanks for reporting this. As Peter mentioned, I'm checking this behavior with our product team to confirm whether it's a known bug or expected behavior. I'll keep this thread updated as soon as I have more information.

     

    Thanks for your patience!

    Abhishek

    Peter Kahrel
    Community Expert
    Community Expert
    July 20, 2026

    This is an ancient InDesign bug. Your sample is correct, but it just doesn’t work. You’ll have to set the wrap offset separately.