Changing the zoom when adding pages settings

Hello

When you add a page to a document with this code:

app.activeDocument.pages.add(LocationOptions.AT_END);

InDesign automatically returns the zoom setting to FIT_TO_PAGE

Is there a way to avoid this?

I would that he should stay on whatever it is.

Help will be very appreciated!

Thank you

Davey

Hi csm_phil

Thanks for your response!

Happens to me to come to discover that!

I wrote this code:

currentZoom = theDoc.layoutWindows[0].zoomPercentage;
theDoc.pages.add(LocationOptions.AT_END);
theDoc.layoutWindows[0].zoomPercentage = currentZoom;

I have 2 questions now:

(1) is there a difference between what I wrote "layoutWindows [0]" and you wrote ' windows [0]?

(2) even if this is not enough, is it possible to prevent it from happening?

The reason why I ask is because in a script that adds a lot of pages, (for example, the MultiPageImporter script), the script needs to do after the addition of each page.

If there is a parameter lock or something like that, it would be much more sufficient.

Thanks again!

Davey

Tags: InDesign

Similar Questions

  • How can I do to change the site when I open a new tab.

    Dear friends...
    I can't find information, how to change the site when I opened a second tab. Example: when I open Firefox my google home page and it's perfect, but when I opened a second tab, appears why yahoo as homepage? I want to change it and I can not find how do. Thank you

    The normal behavior is to open a blank tab, an add-on will be originally to show Yahoo. An add-on which has net gel assistant, if you have one you can uninstall it and it should go back to the opening of a blank tab.

    There are modules that allow you to specify what should open in a new tab, such as:

    Another way to open the home page in a new tab is in the Middle, click the home button in the navigation toolbar.

  • Change the default when opening a PDF file (to something smaller).

    To aid accessibility configuration and goes to 4 screen and change the setting, I can't change the default setting to something smaller.

    Hi artl1998,

    Have you tried to change the Zoom lever in the Edit-> Preferences-> Page Display.

    Kind regards

    Nicos

  • How can I change the length of a page if keeps bouncing back?

    I am changing the length of a page manually using the page but when I try to drag upwards or downwards using the handles and release it bounces back to the size it was. This is the case even with page masters. I turned off as I just get rid of the excess space, leaving only liquid content. Advice? I include a screenshot. The black box is supposed to be here.

    issue.PNG

    Thank you

    Hold down the Alt (Option) key while dragging and it will remain.

  • change the zoom level as IE

    How to change the zoom level as IE?

    This has happened

    Each time Firefox opened

    is n/a

    Extension of the default Zoom level:
    https://addons.Mozilla.org/en-us/Firefox/addon/6965

  • How is it possible to change the 1 tab to Page 2 and page 3 page, etc. by using a Boolean control?

    Hi Sir,

    I created a 4-page tab control. How is it possible to change the 1 tab to Page 2 and page 3 page, etc. by using a Boolean control?

    Thank you vey much Mr. It worked

  • Customer Cisco VPN not prompt to change the password when the Radius ID is due has expired.

    Hello, I would like to know what is behind a Cisco VPN client software to the user PC invites not to change the password when their password ID RADIUS is expiring/expired. I would also like to know what is the solution to work around him. Thanks in advance.

    Hello

    The "password management" command is configured?

    For the password function - expires to work in conjunction with the ray, that's all you need on the SAA.

    Let me know.

    Thank you.

  • How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of chan

    How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of change the color, I chose.

    Three things I can think of:

    Your document must be in RGB mode.

    Layer blending mode should be set to Normal

    Masks are grayscale. If you select the mask, you cannot apply a color.

    Always check your tab at the top to see if what you choose is RGB or grayscale.

    Gene

  • Hello, can we change the font when that we fill a form?

    Hello, can we change the font when that we fill a form?

    Hi Joel,

    You want to change the fonts of observations after completing the form or what? Because once you fill out the form completely, you can only make textual changes to the comments.

    Kind regards
    Rahul

  • Does not change the language when I change my preference-applications-Applanguage on creative cloud. No way to get around?

    Does not change the language when I change my preference-applications-Applanguage on creative cloud. No way to get around?
    It is important to Swedish to English in the case.


    Thank you!

    Please, try the following steps:

  • How can I change the scale when you use the measure tool

    How can I change the scale when you use the measure tool

    With the tool selected, right-click the document, and then select "rate of change of the scale.

  • How to change the color of each page number in InDesign CC?

    I'm working on a book that has pages with black background and some with white background... I need to know how to change the color of each page number, so that they will be visible on the black background.

    I tried clicking on the page number, cmd + shift click... nothing seems to work. I have all the page numbers on a separate layer, because they were hidden behind the images that I place on each page... I don't know if it's important.

    Any suggestion would be appreciated.

    My best advice is to make a second set of master pages with white numbers and apply them as needed.

  • Page moves to the left when adding Image

    Hello

    It would be greatly appreciated if someone could kindly put a fix for a rather irritating problem that causes web pages to spend maybe 20 px to the left when the images are placed in the content area DIV. main It occurs when you view it in several browsers and whatever versions of DW used namely MX2004, V8 and CS5. The question is particularly endemic when using CS5 set the column templates.

    What the devil I'm doing wrong? Code can be provided if necessary (i.e. it is not a problem that is easily identifiable). I searched Google and this forum but have not found a solution to the problem.

    Thanks in advance

    Without a link to an online site, it is difficult to say. Are you sure this isn't just scroll bars on longer pages?

  • How can I change the new tab landing page? I would like to see sites recently seen in thumbnails.

    When I click on the sign '+' for a new tab, I would see field of search google with visit Web sites below.

    Hello

    It seems that a parameter has been changed on your new tab page. These changes are usually caused by bars of third-party tools or modules. I understand that you would like to know how to reset it. No problem, please follow the steps below:

    1. In the address bar, type Subject: config and press enter. The "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise! to keep the comments: config page.
    3. Type browser.newtab.url in the search box to find it on the list.
    4. Double-click on browser.newtab.url and type on: newtab in the window that opens.

    Restart Firefox and open a new tab to ensure that the change has been made. If there is no problem with the plugins please see also: troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    Please post back with your results, we are happy to help you.

  • Cannot change the homepage to "current pageS.

    Since I updated to Firefox 12 I can't change my home page to "use current pageS" > the displayed option is the singular "use current page". And even that one doesn't work properly. If I concentrate on another 'current page' page previous 'current' is still my home page.
    The problems started after I updated to Firefox 12 yesterday evening before going to sleep. From one day to the next, the ASK.COM toolbar very very boring has been automatically installed and set as my homepage. No idea how - I didn't want or do it.
    And when I finally re-created my series of 15 tablets that I use as my home page, I couldn't do 'my home page '. Even after uninstalling Ask.com completely, there was still the possibility to select a page as home page.
    What has gone wrong?
    How to solve it?

    2 is correct. I'm not quite sure what you can do about accidents, but it the future that might be something we address.

Maybe you are looking for

  • Cannot restore the resolution of the laptop

    I have an old 15 "Macbook Pro mid-2010. I still mostly run for daily work snow leopard. I have hooked to an external monitor and experience the resolution on the external display. I used an external display several times before, but without twisting

  • Satellite L500 - how to restore the menu "repair your computer"?

    Hello world I have a laptop Toshiba L500, Yestaday I tried to restore the system to the factory settings (by pressing F8 at startup high and choose "repair your computer"). In the system has been installed almost, but at a stage of installation drive

  • Display with Equium A100-PSAABE problem

    I have an Equium A100 - model PSAABE.The display of the Office covers only 2/3 of the display screen. On the right of the screen is a blackstrip 2 ".I have treid graphics download drivers display Intel, but it did not work.All the settings seem to be

  • my windows won't take my password

    my windows won't take my password

  • 290 in C7280 error code

    I met error code 290 at Fax.What is?