Skip to main content
கற_பன___Imagine_
Inspiring
February 3, 2012
Question

How to remove overset from the group of objects?

  • February 3, 2012
  • 1 reply
  • 1384 views

Hi all,

I've one InDesign snippet objects,  in that grouped object having the few textframe and one anchored frame.

Hierarchy of snippets: Group-->Textframe-->TextFrame (anchored).

textframe.geometricBounds; properties will fail if anchored textframe hiden into another frames.  I'm very much stuggle in these area to remove the oversert in an anchored frame. is it any way?

I've placed the snippet sample in the XML format.

http://pastebin.com/ESicVTWt

Thanks in advance for any helps.

Regards,

Imagine.

This topic has been closed for replies.

1 reply

John Hawkinson
Inspiring
February 3, 2012

I don't understand the question.

I can place your snippet in an empty document and successfully evaluate

app.activeDocument.groups[0].textFrames[4].textFrames[0].geometricBounds

as [3.49468010279394,3.16535433070864,9.94302274613695,43.3782264717039].

What exactly is the problem?

கற_பன___Imagine_
Inspiring
February 4, 2012

I've problem in how to remove the overflows of the textframes inside the grouped Object. ?

கற_பன___Imagine_
Inspiring
February 4, 2012

If using the Textframe fit method doesn't work on the anchored textframe.  So, increasing the frame height step by step using the while loop.

var myGB = frame.geometricBounds;

while (frame.overflows) {

     myGB[2]++;

   frame.geometricBounds = myGB;  // Errors

}

While increasing the frame height unfortunetly thats frame hidden, at that time geometricBounds properties throw an error to me.

How to remove the overflow of the textframes in a grouped Object.

I hope its a clear details.