3 Replies Latest reply on Jul 7, 2015 2:06 PM by Laubender

    Overflow text copy on next page with same anchore box by script

    hasvi Level 1

      Hi,

       

      Is there any possible to get this overflow text to next page. The overflow text must be flow on anchored box. Is this possible by script.

      Here my Libray box name is 'BOX1'

       

       

      FYI:

      1.png

       

      by

      hasvi

        • 1. Re: Overflow text copy on next page with same anchore box by script
          Jump_Over Level 5

          Hi,

           

          You can not to link anchored textFrames.

          However you can move overset part of text to another textFrame (anchored as well) - so there is a static solution.

          To find overset text you can i.e. check characters.parentTextFrames property ( == false).

          characters.itemByRange from this point to -1 is a text to be moved.

           

          Jarek

          • 2. Re: Overflow text copy on next page with same anchore box by script
            mamtha b03

            hi hasvi,

               did u got the answer

            • 3. Re: Overflow text copy on next page with same anchore box by script
              Laubender Adobe Community Professional & MVP

              You can not to link anchored textFrames.

              That might be true.

               

              But you can:

              1. First thread a text frame to another one

              2. Then anchor the first text frame of that story to an insertion point

              (not in the UI, but by scripting)

               

              See the following situation:

              1-OneTextFrame-TwoThreadedTextFrames.png

              Select the left text frame.

              Hold down the SHIFT key and add the text frame in the middle to your selection.

               

              Then run the following snippet (ExtendScript/JavaScript):

               

              //Select the left text frame;
              //this will become selection item one:
              var TF1 = app.selection[0];
              
              //Hold down the SHIFT key and click the text frame in the middle and add it to your selection;
              //this will become selection item two:
              var TF2 = app.selection[1];
              
              //Running this snippet will anchor the text frame in the middle to the last insertion point of the left text frame:
              TF2.anchoredObjectSettings.insertAnchoredObject(TF1.insertionPoints[-1] , AnchorPosition.ANCHORED);
              

               

              The result would be this:

               

              2-TwoThreadedTextFrames-FirstOneANCHORED.png

              You could refine the anchor position etc. with some additional lines of code.

               

              Uwe