Skip to main content
Participating Frequently
July 28, 2009
Answered

place overflow text

  • July 28, 2009
  • 1 reply
  • 783 views

Hi,

  I am working on Adobe Indesign JavaScript. I don't know what is the code i have to use to place the oveflow text,If my textframe overflows.

  if(mytextFrame.overflows)

  {

       // code

  }

Awaiting for ur reply.

This topic has been closed for replies.
Correct answer Jongware

This sample creates a place for the overflow text to go. The first two lines are for testing -- select a non-overflowing frame and run the script (nothing happens), then select an overflowing frame and run the script (... something happens).

mytextFrame = app.selection[0];
if (mytextFrame.constructor.name == "TextFrame")
  if (mytextFrame.overflows)
    mytextFrame.nextTextFrame = app.layoutWindows[0].activePage.textFrames.add({geometricBounds:["12mm","10mm","200mm","120mm"]});

Perhaps we can skip a few more mails by telling what it is you need --  a complete, working, fully debugged and tested Javascript, written by an expert, or a hand in writing one yourself, step by painful step? To do what -- read XML and parse/place the text, fully automated?

1 reply

Jongware
Community Expert
JongwareCommunity ExpertCorrect answer
Community Expert
July 28, 2009

This sample creates a place for the overflow text to go. The first two lines are for testing -- select a non-overflowing frame and run the script (nothing happens), then select an overflowing frame and run the script (... something happens).

mytextFrame = app.selection[0];
if (mytextFrame.constructor.name == "TextFrame")
  if (mytextFrame.overflows)
    mytextFrame.nextTextFrame = app.layoutWindows[0].activePage.textFrames.add({geometricBounds:["12mm","10mm","200mm","120mm"]});

Perhaps we can skip a few more mails by telling what it is you need --  a complete, working, fully debugged and tested Javascript, written by an expert, or a hand in writing one yourself, step by painful step? To do what -- read XML and parse/place the text, fully automated?

kumar1981Author
Participating Frequently
July 29, 2009

Hi Jongware,

         Thank you very much. It is working....

Regards

Kumar