TextFrame move to the previous position

Hi Forum,

Need help from you.

After all the pageItems collection and resize (scale) to the new height page, I want to move the text Frames.geometricBounds [1] to the previous position before scaling were made.

for example, before scaling: executives of related texts [i] .geometricBounds [1] is 12mm, 16.5 mm respectively.

After consolidation and scaling of the group to the new height of page, I want to return the textFrames.geometricBounds [1] and 12 mm, 16.5 position.

I tried to memorize the geometricBounds [1] frames of texts related to a table and after scaling was done, dissociated and tried to move all the frames of texts related to the previous position.

var FO = app.activeDocument.textFrames.everyItem () .getElements ();

for (i = 0; i < tf.length; i ++) {}
var VAT = [];
VAT.push(TF[i].geometricBounds[1].) Join ('\r'));

Here scaling group is the new size of the page...

If (tf [i]] .geometricBounds [1] < app.activeDocument.pages.item (0).marginPreferences.left;)

{tf [i] .move ([tf [i] .parentPage, tf [i] .geometricBounds [0]]).}

try to pass all the textframe to the previous position, when the textframe.geometricBounds [1] are not the left margin.

}}

trying to move all related texts frames which are not of the page.bounds [1] marginPreferences.left, after resizing the document.

Thanks for help on this.

Hello

Try this to resize the last page of the doc. Do with the other pages if necessary.

var
     targetPage = app.activeDocument.pages[-1];
     changedPageSize = [210,180];     // width, height
     currentPageSize = [
          targetPage.bounds[3] - targetPage.bounds[1],
          targetPage.bounds[2] - targetPage.bounds[0]
          ];
     wFactor = changedPageSize[0]/currentPageSize[0];
     hFactor = changedPageSize[1]/currentPageSize[1];
     mGroup = targetPage.groups.add( targetPage.allPageItems );

     targetPage.resize(
          CoordinateSpaces.INNER_COORDINATES,
          AnchorPoint.TOP_LEFT_ANCHOR,
          ResizeMethods.MULTIPLYING_CURRENT_DIMENSIONS_BY,
          [wFactor, hFactor]);
     mGroup.resize(
          CoordinateSpaces.INNER_COORDINATES,
          AnchorPoint.TOP_LEFT_ANCHOR,
          ResizeMethods.MULTIPLYING_CURRENT_DIMENSIONS_BY,
          [wFactor, hFactor]);

Jarek

Tags: InDesign

Similar Questions

  • I can't use the tab key to move to the next field or use the shift and tab to move to the previous field in the forms.

    After update to 7.0.1 I can't always use the tab key to move to the next field or use the shift and tab key to move to the previous field in forms. He has always worked in previous versions and it is essential for my type of work. Does anyone know of a setting to enable this? If this is not the case, can the developers of Firefox is working on this issue (please). I love Firefox but desperately need this feature to work properly. Thank you!

    No - because it works in Mode safe mode, this means an extension is probably to blame. See http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes

  • Layer will move to the undesirable position when you try to synchronize with audio track (CS6)

    Hello

    I'm trying to animate a cartoon speaking character.

    The character half superior of the head must change its position on the axis Y when the character 'speak '.

    I converted to keyframes waveform and then choose value upper position of the head of the character on both channels Slider whipped (see printscreen) and did not alter the values of any expression

    Now, when I RAMpreview, Chief Executive jumps into the upper left corner of the composition and stays there.

    How to change the expression so that the upper head remains in place and moves along the y-axis?

    audio sync.png

    You can use an expression linear() to translate the positive values of the slider to both positive and negative.

    Or you might simply subtract about half of the value in the expression too.

  • after upgrade to 29.0 customizations go back to the previous positions.

    My problem is quite simple (if not boring), I have a problem with my browser customization. my original question was the theme linked however this was rectified with the Restorer 'classic theme...

    now, everything's fine, l sorted all the customizations mainly bring the broswer look at most closely what lm used for (decided to leave the colors as they were, rather than ruin) and once finished l l closed my browser and thought nothing of it, until l it has reopened.

    basically l use an add-on called 'gmail manager' and did for a while now and its been very useful given that l have three accounts gmail (site/personal/professional), these buttons to access have been placed on the toolbar addon (or at least that's where I want them) However whenever l open my browser two of my account change the position upward (corresponding to my address bar) , originally all three accounts were doing the same thing but l managed to get an account to stay in the bar of the addon (although l can't she move, tho that case... what l want is for the two other accounts of staying there as well as the a lve managed to get to stay l put. have you tried to reset the browser , but that doesn't seem to work and since the managed to get one of my accounts permanently placed on the bar of the addon l don't want to go through the inconvenience of having to go through customizations each time l open my browser to do the cleaning in the bar where they seem to come back. so is it possible to make permanent customizations?

    You would need to configure options for this add-on in the Add-ons Manager-> Extensions-> Options of Gmail Manager, then accounts-> account gmail-> change-> toolbar option, you should get something like this where you can change the set up of this account

  • Light bar will not move from the Park position when the cover flat is in place.

    I need to copy a piece of a book of music, mark it for repetition.  The book is thick enough that I must leave the cover upward.  The first 6 copied pages OK, but now all I get is a page of alll-gray.  The light bar doesn't move; It sounds like it is stuck, but only when the cover is in place.  The cover down (copy of one sheet), it works fine.

    I thought about it!  The diference between copies who worked and those who did not was the size of the paper that I used to hide the unwanted materials.  For those who worked, the sheet lying on the light bar.

    Apparently the light bar requires a white surface facing the flat, or it won't work.

  • cursor jumps to the previous position in the middle of typing

    In the middle of typing one email, document, or other, the cursor (insertion point) will move somewhere else on the page - back in the middle of a preceding Word or the beginning of the article.  It happens all the time.  I tried to disable the mouse shows where to put my hands, all I think that would inadvertently affect another key.  Someone had this problem?

    Hi EvelynMark,

    ·         Using a laptop or a desktop computer?

    I suggest you try the following and see if it helps.

    Method 1

    You can follow the link given to hide the mouse pointer while typing. http://www.Microsoft.com/enable/training/WindowsXP/hidepointer.aspx

    Method 2

    If you use a laptop, you can also try to lower the sensitivity of the touchpad or even disable while typing and check if the problem persists.

    You can follow the procedure given to disable the touchpad on the computer.

    1. click on Start and then right click on computer.

    2. click on Properties.

    3. on the left side, click on Device Manager, and then expand mice and other pointing devices on the right side.

    4. under the mouse and other pointing, devices you can right click on the touchpad and click disable.

    5 restart the computer.

    Hope the helps of information.

  • My photosmart c4280 all-in-one make a machine gun noise when cartridges move to the print position.

    I removed the back and checked; no paper jam; No belts broken I see; I can easily move the cartridges manually on the tree.

    Printer still print, but looks like it's dying each time. Should I worry

    Yes, you should worry.  Looks like the belt is slipping.  It will fail eventually.  Try to fix it yourself by finding what is stuck, or get a new printer.  Look in the upper front part of the printer with a flashlight.

  • How to move to the previous image at the end of the clip?

    Using Flash Professional 8. I have a menu with a Play Movie button on frame 1 and a clip on frame 2. On frame 1, the action script reads:

    Stop();

    myBtn_btn.onRelease = function() {}
    gotoAndStop (2);
    };

    So, on the release of the button on frame 1, it goes to frame 2 and begins to play the clip flv (using FLVPlayback). After 9 minutes, when the video is finished, it remains on frame 2 and the playback of the clip head began in the early.

    Should what action script I use to tell him to go to frame 1 at the end of the 9-minute clip?

    Thanks for any help.

    I got the answer to this question at actionscript.org

    Here's the answer below. Use the code below in the box 2 and replace FLVPlayBack with the instance of my (video) component name in image 2:

    function complete (evt) {}
    gotoAndStop (1);
    }
    FLVPlayBack.addEventListener ("complete", complete);

  • Is there an add-on to move to the previous/next buttons to the right of the address bar (FireFox 34)?

    I know this may not seem like a big problem, but I can't bear to have the button to the left of the address bar in back. I've always had the right of it, more toward the middle of my screen. I can just get used to it completely out there. I hate that it is anchored in the address bar. Whose stupid decision was that? I tried to find an add-on, but so far without success.

    You can watch the extension Classic theme restaurant owner to customize the appearance of Firefox.

    • You can check the settings of the extension of the CTR through the Options/preferences button on the page "Firefox/tools > Modules > Extensions.
    • You can find additional toolbar buttons and additional toolbar settings in customize (Firefox 3-bar menu button > customize)
  • Vista Media Center DVD Player not to return to previous position

    Hello and thanks.

    I have Vista Ultimate and I dive into the wonder that is Vista Media Center. It has a great feature! However, one of the points I noticed that lack is the DVD player does not playback from the previous position. As far as I know, there is no option in the GUI. In a spirit of clarity, let me give body to what I mean:

    If I play a DVD movie and stop it in half way through and close Vista Media Center, then restarts VMC and DVD playback, the DVD starts from the beginning and not the position that I stopped. It is not only boring, it is a feature of all the other DVD players I have used offers.

    So, my question is this: How can I activate previous position reading recovery in VMC?

    Hi AShimon,

    Thank you for visiting Windows Vista Microsoft answers forum.

    There is no option in Windows Vista Media Center to resume playback where you left off, after the closure of the Media Center.

    However, I will propose you to pause the video you play and then lock the computer if you do not use or else you can also continue to work on the computer after pausing the video. Whenever you want to watch the video from where you paused just click on the 'play' button.

    Please let us know if it helps.

    Thank you and best regards,
    David

  • Is there a script method to go to the previous/next Note?

    Dear forum,

    Is there a script method for buttons go to the previous/next Note (menu) in InDesign?

    21-09-2015 17-31-06.jpg

    The workaround solution "to invoke the menu item" does not work for my purpose.

    My goal is to write a script which collects the list of authors and the poster in a box of dialogue, say, with a checkbox next to the name of each author. The user can select the authors that he wants to work with and moves to the previous note by selected authors jump those not selected.

    But I think that it is impossible to achieve.  Am I wrong?

    Kind regards

    Kasyan

    If you select the note.storyOffset, it brings the note in display in Control Panel. (Actually it's the other and previous buttons).

    If use you story.notes and find the one before or after the current selection and choose this one.

    It should be fairly simple.

    Substances

  • Update for iOS 15.0.0 is poster Arab annotations in the reverse order / how downgrade to the previous version that worked correctly

    Hello

    Update for iOS 15.0.0 is poster Arab annotations in reverse order

    How to move to the previous version that worked correctly

    the text of shot isn't one Arab readable because it is from left to right (it's in the correct order when writing, but once click reverses)

    Thank youwrong Arabic direction.png

    Hello

    This problem has been fixed in the new version 15.0.3 in the app store.

  • How to take the new start of table in the same position as the previous and only randomize the newObjec

    So I'm trying to do 5 boxes/ships (3Blue and 2 Greens) appear in a random position (1-Gree, 2nd - blue, blue-3rd, 4th-green, green-5 or some other random way) I have the corner of the stage. Bring down. Make a new 5 boxes and position them on the same position the previous 5 and only get randomized (not with the 5 previous, it does at the moment). And that then they move down.  so far code I have is:

    import flash.events.Event;

    var shipCount:Number;

    var shipCount2:Number;

    var shipArray:Array = new Array();

    var shipArrayPosition:Array = new Array();

    var count: int = 0

    var positionsX:Array = ["50" "100", "150", "200", "250"]

    addEventListener (Event.ENTER_FRAME, everyFrame)

    function everyFrame(ev:Event):void {}

    counter ++

    If (counter % 70 == 0) {}

    doShips()

    }

    positionShips()

    trace (shipArray.length)

    }

    function doShips() {}

    shipCount = 3;

    shipCount2 = 2;

    var distance = 10;

    for (var i: int = 0; i < shipCount; i ++) {}

    var s = new ship;

    shipArray.push (s);

    s.x = s.width/2 + (s.width* i) + gap * I

    addChild (s)

    shipArrayPosition.push (s);

    }

    for (var j: int = 0; j < shipCount2; j ++) {}

    s = new Ship2.

    shipArray.push (s);

    }

    var array: Array = new Array();

    While (shipArray.length > 0) {}

    var: index: uint = Math.floor (Math.random () * shipArray.length);

    Array.push (shipArray [index]);

    shipArray.splice (index 1);

    }

    shipArray = array;

    shipsArray has been randomized

    for (var k: int = shipArray.length - 1; k > = 0; k-) {}

    shipArray [k] .x = positionsX [k]

    addChild (shipArray [k])

    }

    }

    function positionShips() {}

    for (var i: int = shipArray.length - 1; i > = 0; i--) {}

    shipArray [i] .moveDown (//what) code in the class of the ship and Ship2-> only: this.y += 3

    }

    }

    and how to stay in one position. Must not move in any position x when the 5 new are added

    It is even more effective, because it removes the ships that moved out of sight:

    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    
    var numShips:int = 5;
    var shipCount:int = 3;
    var shipArray:Vector. = new Vector.();
    var counter:int = 0
    var positionsX:Array = [];
    
    init();
    
    function init():void
    {
              // populate positions
              for (var i:int = numShips - 1; i >= 0; i--)
                        positionsX.push(50 * i);
    
              addEventListener(Event.ENTER_FRAME, everyFrame);
    }
    
    function everyFrame(e:Event):void
    {
              counter++
              if (counter % 70 == 0)
                        doShips();
              positionShips();
              trace(shipArray.length);
    }
    
    function doShips():void
    {
              var gap = 10;
              var s:MovieClip;
              var shipsLine:Sprite = new Sprite();
              shipsLine.cacheAsBitmap = true;
              addChild(shipsLine);
              shipArray.push(shipsLine);
              shuffle(positionsX);
              for (var i:int = numShips - 1; i >= 0; i--)
              {
                        s = i < shipCount ? new Ship() : new Ship2();
                        s.x = positionsX[i] + gap;
                        shipsLine.addChild(s);
              }
              shipsLine.y = -shipsLine.height;
    }
    
    function shuffle(a:Array):void
    {
              for (var i:int = a.length - 1; i >= 0; i--)
              {
                        var r:int = Math.floor(Math.random() * (i + 1));
                        var t:Object = a[r];
                        a[r] = a[i];
                        a[i] = t;
              }
    }
    
    function positionShips():void
    {
              for each (var shipLine:Sprite in shipArray)
              {
                        shipLine.y += 3;
                        // remove line that moved out of stage
                        if (shipLine.y > stage.stageHeight + shipLine.height)
                        {
                                  removeChild(shipLine);
                                  shipArray.splice(shipArray.indexOf(shipLine), 1);
                        }
              }
    }
    
  • How to move the search return bar to the previous version?

    Using the latest update of Firefox gave me a new search bar, one where I can't change quickly, search engines to the contrary having to go into a menu to do so. This is detrimental for me since I use each search engine search suggestions, I installed. I can't do that. How to move the search return bar to the previous version?

    I found a solution. If you go in Subject: config, then find the browser.search.showOneOffButtons boolean and rocking that it restores the old functionality. (You may have to restart your browser)

    Note that, as always, to edit your subject: config at your own risk.

    credit: askvg.com

  • Is it possible to move the dock to the 'start' position in El Capitan?

    I wish that the dock to appear in the upper left corner of my screen. I have the dock on the left, but I want to move it to the top in the corner (the starting position). This could be achieved in an earlier version of Mac OS X with a command line terminal or something like handyman tool. I can't make it work in 10.11.2. I tried the command-line 'defaults write com.apple.dock pinning beginning' and 'write com.apple.dock pinning - beginning of string' ending with a killall command Dock. Am I missing something?

    What you want is not possible.  The dock can be to the left of the screen, to the right of the screen, or at the bottom of the screen.  That's all.

Maybe you are looking for

  • IPod touch ios 9 Virus/melware

    An iPod touch running iOS 9.3.2 will get a virus/malware safari? (It is not jailbreak) and the attacker will find here where I live? Thank you for responding!

  • Where is the function of the number of Recipricated on the first HP?

    Hello I am trying to locate the 1 / x (number recipricated) function on the First HP - as I don't know if the terminology is correct for the unit, when you do a find in the PDF manual - it comes in white. (Note: as a test, I tried to do the same term

  • Norton 360-all-in-one-security version 4

    Hello I recently installed Norton 360 all in one security from a usb key, and he slowed down-my starting from 37 seconds to 50 seconds. All of my settings for this program are defined by default. Norton 360 v4 claims, it won't slow down your boot tim

  • Text in mozilla firefox looks blurry after update

    Hello I'm trying to contact support about issues after you install the latest update. Why is this info anywhere is located on the microsoft Web site? After you install an update of this week, the text in mozilla firefox looks very blurry.

  • my vista updates will not be set up correctly, what should I do?

    When I download and install updates windows, the message above (title) arrives and then it says "download failed" in the downloads section