How do I "Place shift" text?

Hello.

I have a doc in which there are three blocks of text per page: frameA frameB and frameC.
On master, frameA (page1) is threaded to frameA (page 2), (page1) frameB is threaded to frameB (page 2), and (page1) frameC is threaded to frameC (page2).
I want to place textA frameA, textB frameB and textC in frameC.

Each text file has enough text to take place around 7 pages.

I obviously want every story flow perfectly from image to image, without skipping pages and threads systematically the appropriate framework.

When you use the user interface, I found it useful to hold down the shift key when you place text (otherwise, it seems to ignore random pages).

How can I "Place shift" while script?


Any help would be appreciated.



This answers spoon feed you Peter.

var someText, c, doc, tf, geoBounds;
someText = [];
for (c = 0; c < 400;) {
    someText[c++] = c + 1;
}
someText = someText.join(")\t Some text here Some text here Some text here Some text here\n") + ")\t Some text here Some text here Some text here Some text here\n";
doc = app.properties.activeDocument || app.documents.add();
geoBounds = getMarginBounds(doc.pages[0]);
tf = doc.pages[0].textFrames.add({geometricBounds: geoBounds, contents: someText});
autoFlow(tf);

function autoFlow(theTextFrame, destinationPage /* [Optional Page object] defaults to following page */ ) {
    const MAX_ADDED_PAGES = 100; // to prevent endless runs
    const ONLY_ADD_PAGES_IF_NONE_PRESENT = true;
    var geoBounds, doc, flow;
    if (theTextFrame.constructor != TextFrame) return;
    doc = theTextFrame.parent;
    while (doc.constructor !=  Document) doc = doc.parent;

    // This is the function that adds the pages & threaded frames as needed
    flow = flow || function (theTextFrame, safety, destinationPage) {
        if (!theTextFrame.overflows) return true;
        if (!safety) return false;
        var newFrame, currentPage, nextPage;
        if (destinationPage && destinationPage.isValid) {
            nextPage = destinationPage;
        } else {
            currentPage = theTextFrame.parentPage || theTextFrame.parent.pages[0];
            nextPage = doc.pages[currentPage.documentOffset + 1];
            nextPage = (ONLY_ADD_PAGES_IF_NONE_PRESENT && nextPage && nextPage.isValid) ? nextPage : doc.pages.add(LocationOptions.AFTER, currentPage);
        }
        // Calculate the correct geometricBounds for the textFrame
        // Caching would be quicker but this is safer
        geoBounds = getMarginBounds(nextPage);  /// make sure to also copy the getMarginBounds function!

        newFrame = nextPage.textFrames.add({geometricBounds:geoBounds, previousTextFrame: theTextFrame});
        return newFrame.contents.length ? flow(newFrame, safety--) : false;
    }
    return app.doScript("flow(theTextFrame, MAX_ADDED_PAGES, destinationPage);", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "Auto Flow Texts");
}

function getMarginBounds(thePage) {
    var pageBounds, pageMargins, top, left, bottom, right, swap;
    pageBounds = thePage.bounds;
    swap = thePage.side == PageSideOptions.LEFT_HAND;
    pageMargins = thePage.marginPreferences;
    top = pageMargins.top;
    left = (swap) ? pageMargins.right : pageMargins.left;
    bottom = pageMargins.bottom;
    right = (swap) ? pageMargins.left : pageMargins.right;
    return [pageBounds[0] + top,
                pageBounds[1] + left,
                pageBounds[2] - bottom,
                pageBounds[3] - right];
}

Tags: InDesign

Similar Questions

  • How can I place a text box on the other in the left column of my head?

    Greetings! Below, you will find something that I worked on a link. Now I have to change the left side of the header that contains the text box "Hiring" in a box on top of each other using the same amount of space. I also need to make these 2 boxes pop out when you click them but only one at a time. How can I place a text over another box using the same amount of space without any screwing? I could also use some help getting these images that say 'HIRE' and 'FIELD NEWS' inside boxes instead of above them.

    Thank you in advance. http://www.bestmarketingnames.com/xbanneredit.php

    Despite the CF McBlob comments that I share, I'll try to answer your question immediately. Just add this new markup above your other div scroll like this:

  • How can I place a text box in a form in Indesign?

    Screen Shot 2016-05-10 at 6.10.20 pm.png

    I try inserting the letter A in this triangle. I don't want to type inside the triangle because the words are not reach corners. Instead, I want the triangle cut around one. So if I place A in the corner, I want the own to be at the front. Who is? I tried to do it for 2 hours. Frustrated

    You want to hide the 'a' by the triangle?

    Then place the text block holding the 'a' in addition to the triangle. Cut, select the triangle and use the command "paste inside".

    Since my German InDesign:

    Uwe

  • How the automatic placement of the xml text

    How to import the xml file into indesign and automatic placement of text using javascriprt without model

    Hai

    Please try this:

    var doc = app.documents.add ();

    xmlRoot = doc.xmlElements.item var (0);

    xmlRoot.markupTag.name = "Properties";

    with (doc.xmlImportPreferences) {}

    importToSelected = false;

    importStyle = XMLImportStyles.mergeImport;

    createLinkToXML = false;

    allowTransform = false;

    repeatTextElements = true;

    ignoreUnmatchedIncoming = false;

    importTextIntoTables = false;

    ignoreWhitespace = true;

    removeUnmatchedExisting = false;

    importCALSTables = true;

    }

    xmlRoot.importXML (file (Folder.desktop + "/ sample.xml"));

  • How to place a text box on an image in a specified location?

    Hi all!

    I am an intermediate user of Dreamweaver and try to learn the CSS I created my Web site.

    My problem is that no matter what position specified I returned to the text box using the implementation of style, the results are far from what I'm looking for.

    I built my website using tables and want to place the text box on an image that is embedded in a cell.

    So, here's what I've done so far:

    CSS stylesheet:

    #abouttext {do-family: Arial, Helvetica, without serif;}     do-size: 16px;     make-style: normal;     make-weight: normal;     color: #FFF;     text-decoration: none;     background-color: #D0DF4A;     padding: 5px;     height: 260px;     Width: 180px;     overflow: hidden;     visibility: visible;     border: 1px solid #D9E46B;     right: auto;     bottom: auto;     z-index: 1;     resize: none;     position: absolute;     left: 331px;     top: 289px; } //below is the assigned div.

    < div id = "abouttext" >

    < p align = "center" > this text is enclosed in an < /p > box.gdsgsfgzfdgfg

    < / div >

    I know I'm missing something, and it's probably something to do with the investment. I don't get how to assign the up, down, left and right values.

    Could someone please explain?

    Thanks in advance!

    ~ THE

    Hello, I'm newer than you if do not have a go if it is nonsense - I tried!

    But I discovered this week that to make the absolute position of the work the containg div must have the relative value.

    I have a #container defined, div.  The #content div is then positioned compared to this div container using an absoulte position.  Move it around to adjust the position absolute - in my case I used left = 0 top = 0 to put it at the top left of the div container I used Panel click CSS styles on the div #content and there standing in live mode view - I can not yet write code.

    ?????

  • How can you change a text in an image?

    How can you change a text in an image?

    Hi Jasper,.

    It depends on how the text has been staged, and what has been done with the image after that.

    A quick test - what happens when you zoom in on, or enlarge the image?

    If the text retains its edges when amplified, then it can probably be edited separately from the image. If the text begins to show pixelation on the edges (like the picture), then there is no text to change, what looks like adding text is actually part of the image and can only be changed in the same way that you can change anywhere in the image.

    Here is an example:

    The photo is a photo (jpeg format), inserted in a Pages document created with the essay template. White text in the upper left corner of the photo is placed in a text box. To put the photo on this page (and the text on and around it) has been converted to a PNG file. When it is enlarged on this screen, the text finally a pixelated image...

    .. .the easily noticed in the thin relates diagonal 'o'.

    In Pages, however, the text and the picture are separated, and the text is a vector image - mathematically trained and scalable.

    The text here is contained in a text box and the text box was grouped with the photo. To change the text (in Pages), I need to:

    • Click on the text.
      Handles will appear in the corners of the selection.
      That click you select either the entire image OR just simply the text box.
      • IF the handles are blue x characters, the selection is locked
        Go organize (menu) > Unlock
        Sectionals unlocked handles are small white squares.
    • IF the selection includes the entire image
      • Go to the menu, rearrange and choose ungroup
        If the choice to separate is not available, the text may be part of the image and uneditable as text.
        Try to click twice (separated from the clicks, not double click).
        If the insertion point (|) is now in the text, the text is editable as text.
        Change the text.
    • IF the selection looks like a text box and does not the whole image
      • Click on the text to place the insertion point (]) in the text
        Change the text.

    Image showing the insertion point in the text in a text box on the image:

    Kind regards

    Barry

  • How to paste a copied text in the Mail application?

    Original title: copy and paste

    I'm trying to respond to an e-mail message in windows 8. I copied the text of a previous email. I place my cursor in the zone where I would normally start typing a response. How to PASTE the copied text there?  I guess that the copy of the text copied to my notebook?

    In the e-mail screen slightly slide down from the top of the screen. This will open a toolbar at the bottom of the screen. Third turn along your left is the function paste.

  • How to change the default text in the search box ("Search")?

    Hello

    I would like that the text that appears by default in my search box to say "How do I...?" instead of the default '- search -'.  I think that this can be done by changing some text tagged in the HTML code the background/context/that aid system for either, but I don't know where to find that. How I would get this text to change?

    Thank you!

    Tim Huddleston

    The idol of Millions,

    Friend to None

    (Except the person who answers my question)

    Happy that you guessed it sorted!

    For anyone who finds this thread on the road, here's another way to do it.

    RoboHelp (2015 Release) click the project tab in the Ribbon, and then click the project settings. (you can also easily open the project settings by pressing Ctrl + Shift +?)

    This should open the project settings dialog box.

    Make sure the general tab is to the point and click on the button "Advanced".

    This should open the advanced settings of the localization dialog box.

    Scroll down to the section titled: [ResponsiveHelp] and find the setting that reads: search = search.

    Click on this line to give it focus, then click Edit.

    Change the line as follows search = (Type what you want to see here)

    Click OK Click OK to dismiss the dialog boxes, and then generate the output again.

    See you soon... Rick

  • Whenever I try to create a text box indesign automatically for me and place the text in the middle.

    Whenever I try to create a text box indesign automatically for me and place the text in the middle. I can get the text moves if I play with the object ' menu ' detected block options, but it does every time. "

    Hello, welcome to the forum of InDesign. I'm a different Steve.

    What version of InDesign are you using? What operating system do you use?

    Tell us exactly how you create your text box (frame).

    The easiest way is to choose the tool of Type (T). Click and drag an image where you want to go.

    But, if you place the text to another program like Microsoft Word, click file > Place. Select the file and click Open. Drag-and-drop placement of text cursor to position it on the page.

  • How to copy/paste the text box anchor to its anchor text and remove all checkpoints empty?

    Hi all

    I have a document of a few pages, but a story. The right column is the area of main text and on many places, anchored text boxes are placed which appears on the left column, as shown below.

    I want the text of each text box anchor to cut of his place and sticking to its point of insertion/anchor and remove all of the empty boxes of anchored.

    I'm trying since this morning but I was able to get the anchor object reference. Any help on how to start with will be useful.

    Marie rosine

    anchor_box.png

    OK, let's say you have a main text (not rooted) box and three text boxes that are anchored to the text it contains. One is anchored with text, the second is not anchored and the third argument is empty (I won't get into the anchor vs custom anchor line given that you mention in your message).

    Scroll us through the items on the page:

    function main(){
      var myDoc = app.activeDocument;
      var myPages = myDoc.pages.everyItem().getElements();
      for (var i = 0; i < myPages.length; i++){
      {
        var myPage = myPages[i];
        //Checks that the page is valid, and that it is not a master page. If either is true, skips to the next page.
        if (myPage.isValid == false) continue;
        if (myPage.parent instanceof MasterSpread) continue;
        var myItems = myPage.allPageItems;
        for (var j = 0; j < myItems.length; j++){
          //Current item.
          var myItem = myItems[j];
          //If myItem doesn't have a Character parent, it is not anchored.
          //The first and third text frames would fail this test.
          if (!(myItem.parent instanceof Character)) continue;
          //We only care about text frames.
          if (!(myItem instanceof TextFrame)) continue;
          //I think the only way this would happen would be if you had an image or
          //something else unexpected within the frame. I check for it so no content
          //is inadvertently lost.
          else if (myItem.texts.length > 1) continue;
          //If we're still in this iteration of the loop, all qualifications are met.
          //Flatten the text frame.
          //I don't use layers that often so, to me, flatten makes sense. You may want
          //to use a different term if there's a chance for confusion.
          flattenItem(myItem);
         }
       }
    }
    
    function flattenItem(funcItem)
    {
         //Hold onto the anchor character.
        var myParent = funcItem.parent;
         //Duplicate the text from within the frame so that it appears right after the anchor.
         //There may be other methods, but this works for me. I try to avoid copy/paste
         //so as not to deal with any clipboard mishaps. I added a check in case of empties.
         if (funcItem.texts.length > 0){funcItem.texts[0].duplicate(LocationOptions.AFTER, myParent.insertionPoints[0]);}
         //Replace the anchor character itself with a space (or whatever) which also
         //deletes the text frame it was anchoring.
        myParent.contents = " ";
    }
    

    I guess the takeaway is perhaps you aren't looking at the main text block and then check if anything it is anchored. You are watching each text block and find out if it is anchored. That's my approach, anyway.

  • Table of contents - how to not 'place' in the table of contents

    whenever I click to open my document of OCD

    -l' black needle text attached to it

    -I click the ESC key and all other buttons control to try to eliminate it because I don't want to insert this text into my running already - for the most part of OCD.

    n ' matter what - it ends by placing the text in the text in blue box.

    -then I have to select it and delete it.

    - but I am not convinced that I have

    -because when I click on layers, I see 4 layers under the main layer.

    Why this is happening please?

    -How to I solve it?

    -It should have been the first concern I've ever posted in discussing toc for a few days.

    Thanks again.

    Regina

    dopfel wrote:

    whenever I click to open my document of OCD

    -l' black needle text attached to it

    -I click the ESC key and all other buttons control to try to eliminate it because I don't want to insert this text into my running already - for the most part of OCD.

    n ' matter what - it ends by placing the text in the text in blue box.

    -then I have to select it and delete it.

    - but I am not convinced that I have

    -because when I click on layers, I see 4 layers under the main layer.

    Why this is happening please?

    -How to I solve it?

    -It should have been the first concern I've ever posted in discussing toc for a few days.

    Thanks again.

    Regina

    TOC instructions are confusing, I agree.

    To avoid having a table of contents to fill your cursor when you already have a table of contents, place the text in text tool in the existing table of contents, and then choose layout > Update Table of contents.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • How to convert numbers to text in a form created in LiveCycle Designer?

    I am relatively new to Livecycle Designer and many a newbie with JavaScript and FormCalc.  I created a form of conditional sales contract and when the user enters a value (1548.95) I would like to know how to auto fill a text field with its text equivalent (a hundred five thousand and forty-eight dollars and ninety fifteen cents).  I found two forums explaining how to do this in Acrobat 8, but nothing in LiveCyle Designer.   Can is this possible in LiveCycle and someone please help me with the script?

    Thank you

    Hi Peter,.

    You can move the WordNum function to calculate the text field event (may be a better place for it anyway).

    So you should have something like;

    WordNum (NumericField2

    (2).

    Bruce

    -form1. #subform [1]. DollarAmountText::calculate :-(FormCalc, client).

  • How can I change the text of the field mouseover popup?

    How can I change the text of the field mouseover popup? I can't find it anywhere? A help for popup search comes up with nothing.

    Thank you for the help on this.

    If you are looking to update the tool tip you do this in the palette "accessibility". You can use the window > accessibility or SHIFT + F6 to open it. Hope that helps.

  • How can I change the text in the Messages to the vertical?

    How can I change the text in the Messages to the vertical?

    If you mean change the orientation, simply turn the phone. If this does not work, close Messages and then run again.

    To close the Messages, press the Home button twice quickly. You will see small glimpses of your applications recently used. Drag to the left to find the application you want to close. Swipe up on the preview of the application to close.

    If it does not, the strength to restart the phone. No data is affected by this. To force the reboot your device, press and hold the two buttons of sleep/wake and home for at least ten seconds, until you see the Apple logo.

  • How to remove places the iphone with IOS 10 album

    HOW TO REMOVE PLACES AND PEOPLETOP ALBUMS SINCE IPHONE RUNNING IOS 10?

    lwwfromohio wrote:

    HOW TO REMOVE PLACES AND PEOPLETOP ALBUMS SINCE IPHONE RUNNING IOS 10?

    First, turn off your hats of all the...

    You can not as these files came with ios 10.

    don't like it use the contact us link below to notify Apple.

Maybe you are looking for

  • Listen to music from iPhone for cinema house Blu-ray (BDV-N790W

    Is there a way to stream music from an iphone (without being connected to the docking station) for the blu - ray player? I like to play music in itunes on my iphone via the wireless from my phone home theater system. I downloaded the app, but I do no

  • Need help to put keys back on Portege M400

    I removed my SPACEBAR to get something stuck under it, and I can't seem to attach to the right; all the pieces are there, but something not right, and the lower part is blown upward, making it a pain to type. I removed my enter key before and put it

  • The R400 processor upgrade options

    I have an old Thinkpad R400 with a CPU T6570 currently and I think to be upgraded. He uses the Socket P so I thought to upgrade to an intel Q9100... Maybe even a QX9300. I know he's not in decision-making, my question tho is the bios motherboard will

  • DHCP relay does not not in in-band mode

    Hi Faisal,. wireless client does not have dhcp via a CAS server server ip address,. Here's the scenario, 1. inband case network configuration: Trust interface (for protected network) Untrusted interface (network management) IP address Subnet mask Def

  • Several operating systems Vista and Win 7 run built in missing bluetooh

    My Bluetooth 2.0 + EDR on Acer Aspire 6920 G installation could not be detected so unable to installed correct driver after that I installed my Windows 7 as my 2nd several operating systems with the original Vista SP2. Only the Vista Panel showing al