Adding pages and blocks of text to emulate the behavior of "Smart Text Reflow"

I create a large number of tables in a document.  If I'm Smart Text reflow on, my script is malfunctioning.  I have the start of treatment:

1. Add a new table

2. If the last block of text of page overflowing and then add a new page

With smartTextReflow off, I want to assure that the executives of new blocks of text which corresponding to the main text of the page master.  It must be able to manage to get the settings from the page of left/right text block.

I have solved my problem.  I was overthinking things!

Given that I have selected blocks of text on master pages as the main text blocks, when you create a new page, a block of text is automatically created. So the problem is then simply connect the block preceding text for the text block that was created when the page is added.

TableAutomation.prototype.AddPage = function() {
     var previousTextFrame = app.activeDocument.pages[-2].textFrames[0];
     var np = app.activeDocument.pages.add();
     var textFrame = np.textFrames[0];
     previousTextFrame.nextTextFrame = textFrame;
};

The cost of the above code was about 5 hours of banging my head against the wall

Tags: InDesign

Similar Questions

  • With the help of Master pages and blocks of text

    Hello

    I created a text frame on a master page and you have specified a style

    Can I add my custom text on the text block by pressing ctrl + Maj + text block.

    If I change the style, it applies to all pages.  But if I move or resize the text block on the page master it does not apply to all pages because it has become its own layer on this page.

    What do you do before you can change the text block and the master page and still be able to add your own content in pages that depend on the master page.

    Thanks a lot for your help

    Why do you need to replace the title of the page?

    Use either a text variable, a section marker or create another master page based on this master page with a different text in the placeholder. Only the content will appear on the pages, everything else, like running headers or page numbers or artifacts have a place on the master page without replacing them.

    When you later create accessible PDF or EPUB this difference is important. You can read high voice content in Acrobat for accessibility, that text on the page, not the master is used for this, and when you export an EPUB page only elements, not the master are included as it should.

    If you need text to expand, when something changes, create your page with margins and borders that will help to make changes later.

  • Some icons on my desktop have an e page and will be open to display the download box

    Some icons on my desktop have an e page and will be open to display the download box, his options are open or save, it makes anmd attempto opened, but it does not open

    the application, the same box opens with the same options and so on.  What can I do to fix this?

    Hi jlbarrie,

    1. what operating system do you use?
    2. do you get an error message?
    3. you have made no changes to the computer before the broadcast took place?
    4. have you download and save web pages?

    Run the next fixit.

    Difficulty of broken desktop shortcuts and common system maintenance tasks
    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us

  • I just bought a Canon 7 d, Mark II, new DellXPS and 5.2 of Lightroom.  The Lighthouse is not open the 7DMark II, but opens the older 7 d that I imported.  I checked the update of the home page and do not see one for the 7 5 d Mark II.  Please say what t

    I just bought a Canon 7 d, Mark II, new DellXPS and 5.2 of Lightroom.  The Lighthouse is not open the 7DMark II, but opens the older 7 d that I imported.  I checked the update of the home page and do not see one for the 7 5 d Mark II.  Please that's where - otherwise what.  I'm "waiting until what his doing."  Thank you.

    Upgrade to the current version, which is Lightroom 5.7.1. You can do it from the Lightroom Help menu and choose updates.

  • How to change the text and block of text together by specifying the measures

    Hi all

    I have a block of text that is 200 mm wide (for example) and must be able to scale proportionally, as well as the text that it contains, by specifying the new width in mm (rather than as a percentage). Can someone tell me if this is possible? I use InDesign CC 2014.

    Thank you very much

    Jason

    Just use either scale field in the control panel (NOT the height or the width area - those who say % use) and enter any value and the units of your choice. No units specified by default, %, but if you add mm, pt, in, etc. to the value ID will do the required calculations.

  • Problem of ball when creating tables and blocks of text in InDesign CS5

    Every time I have create a new text frame or a table in InDesign CS5 and paste information, the first row in the table or several lines of text out with chips. I don't know that it's a style at some point, I created and am now unsure how to remove or setting. I would like the new blocks of text and tables do not include by default when imported or pasted chips. Any thoughts? Thank you!

    Default values for the text in the current document are made with no selected text. Disable the chips and they should stay off (but check styles, also, you have perhaps accidentally set a style bulleted as the default and you must change the default style instead). If this is the case in all files, you must do with nothing open to reset the default for all new documents (existing files, must unfortunately be set one at a time).

  • I did accidentally full page and you want to return to the view bar

    I accidentally got rid of the toolbar at the top - and click "entire page" - but he want to come back. How can I get it back?

    I use this (fast) feature to have as few on my screen as possible when using sérigraphe.

    Press F11 to switch back.

    NB. you can change the size of the screen easily for copying or printing of first pressure (as many times as desired):

    Increase Ctrl + (+) and scroll cut Ctrl + (-) to center the view.

  • can computor seams as he doesn't stop and when I press the on switch, it goes to ablank page and I have a flashing in the upper corner hiffen

    My computer does not completely shut off.when, I press the button it lights on ablank page and a flashing light in the left corner.

    Hi John,.

    I see that the computer does not stop correctly. I'll help you with this problem.

    1. What is the brand and model of the computer?

    2. what security software is installed on the computer?

    3. have you made changes on the computer recently?

    4. are you able to shut down the computer by pressing the power button for 10 seconds?

    5. have you updated to Service Pack 2 installed?

    I suggest you to refer to this article and check if that helps.

    The problems of power: http://windows.microsoft.com/en-US/windows-vista/Troubleshoot-power-problems

    I hope this helps.

  • Paste my doc Microsoft Word of 321 pages in InDesign shows only the first page, and sizes are all have done the same thing.

    When I paste my doc Microsoft Word of 321 pages in InDesign.

    (1) only the first page is displayed even if the captain said 231, and

    (2) all words are in the same size instead of what was in Word.

    Thank you.

    Do not glue, use file > Place... and hold down the SHIFT key when you click the loaded cursor.

  • I can create, be able to update a list on one page and have a smaller list in the home page stream

    Sorry, if it does not make sense. I am very new to Web design. But I work with a church that hates most of their Web site, but like the ability to post events on the event page and a list of the updates of the events on the home page. When you click the event it takes you to the events page or another website dedicated to this event.

    The site I'm referencing: www.gapgen.org

    As well as when their post podcasts. When they download it from the page admin page "sermons" a list updated on the home page.

    Is this possible? Or is it going to take some serious and complicated coding?

    Post edited by: theNazarene

    This is not possible with only Muse. With some knowledge of Business Catalyst creating templates and modules, you can add these features.

  • Firefox refuses to stop the blocking of pop-up windows - up, even with added exceptions and blocker completely disabled.

    I work in a facility that uses a corporate intranet to access our database. The database uses windows pop up widely important information. Problem is that Firefox absolutely will NOT stop block popup windows no matter what I try. At first I added our database server to the list of exceptions. It worked for a while, but soon after resumption of the important pop-up blocking. I then completely disabled the blocking of popup windows (options > > content > > unchecked "block popup windows"). It did not work until I closed and reopened Firefox. A week later (today!), Firefox takes over again blocking the pop-up windows. I double checked my settings to confirm that Firefox still claims to have the popup blocker off.
    At this point, I am at a loss on how to proceed. I looked at other issues similar and my frustration (and certainly their even more), individuals requesting repeatedly told them to turn off the blocker of popups even after explaining that they already have. Help would be very appreciated.

    Thanks for the description of the Firefox Safe Mode. I just thought that Safe Mode is a condition under which we could launch Windows XP in a minimal operating system by starting a startup sequence, hold down the F8 key and effectively manage the prrams troubleshooting and maintenance for Windows. It seems that the Windows XP of Firefox version could run not affected by a virus, a worm or other malware, and ge fixed.

    Please try this Linux distribution. They are many, and I'm a fan.

  • Timer page and block

    I am current working on a project to review system and I'm trying to implement a timer for any question and I want to block page refresh, because it would change the content of the element in question. Any ideas?

    Visit the forum... There are SEVERAL threads on this...

    Examples:

    http://forums.Oracle.com/forums/search.jspa?threadID=&q=question+timer&objid=f137&DateRange=all&userid=&NumResults=15&rankBy=10001

    Thank you

    Tony Miller
    Webster, TX

    Never give up dreams!
    JMS

    If you answer this question, please mark the thread as closed and give points where won...

  • Why the latest version of firefox insists not flash player is outdated and blocks read, but this is the last update

    Flash Player Plugin between 11.0 and 11.7.700.169 (click-to-play) has been blocked for your protection.this is what firefox tells me but when I check the Add-ons Manager, it says version 15.0.0.239 is installed.how can get firefox to recognize the correct version

    Hello, adobe has released a critical fix for a vulnerability in its version of the flash plugin, which is apparently already exploited in the wild. That's why firefox will block the precarious versions which run by default on Web sites for your protection. https://helpx.Adobe.com/security/products/Flash-Player/apsb14-27.html https://addons.Mozilla.org/Firefox/blocked/p794

    Please update Adobe Flash Player version 16.0.0.235 as soon as possible, that you can download from http://www.adobe.com/products/flashplayer/distribution3.html (use the windows exe for plugin-based browsers).

  • Startup of Firefox NYTimes as my home page and I can't go to the firefox toolbar to disable temporarily blockers.

    I can't go to the toolbar for Firefox because it starts my homepage everytime I open Firefox. I opened the program folder and find the file Mozilla but that was no help. Firefox Help pages have been of any help, because I can't go to the home page of Firefox. How can I get to the Firefox home page starting with disable my choice of startup homepage and then temporarily disable pop-up windows? Thank you, Bill

    Do you mean that you do not have the Menus at the top of the Firefox window (File, Edit, View, etc.)? If this is the case:

    1. Press Alt on the keyboard to bring up the menus
    2. Click on the view menu, go down to toolbars and select menu to menu bar remain.

    For more information, see what happened to the menus file, editing and?.

  • Help! How do I just go on a blank page and type a letter with all the settings so that I can dash, Center, etc.

    Ok!  I'm very computer"hostile", so how can I find a document/blank page to type a letter, which has police settings, indentation, "BOLD", centering, etc. and be able to make copies?  Thank you.

    Start | All programs | Accessories | WordPad.

Maybe you are looking for