Zoom settings change when adding pages

Hi
When adding a page to a document with this code:
app.activeDocument.pages.add(LocationOptions.AT_END);
InDesign automatically reverts the zoom setting to FIT_TO_PAGE
Is there a way to prevent this from happening?
I would like that it should stay at whatever it was.
Help will be much appreciated!
Thanks,
Davey

Davey_Doo wrote:
1) is there a difference between what I wrote "layoutWindows[0]" and what you wrote "windows[0]"?
Yup, "layoutWindows" refer to just the layout windows -- the ones one is normally working in. The other kind is "storyWindows", which is what you get when you open a text in the "Story Editor". There are vast differences between the two, such as "zoom" (you cannot zoom in on the story editor window).
Using "windows", without specifying the kind, you get a list containing both types; and using "windows[0]", you get the very first one, whether it is a story window or a layout window. Then, if it happens to be a story window, csm_phil's script will Crash & Burn because you cannot zoom in on a story window.
Your version will work correctly, and just in case you might have a story editor window open, it's best to stick to "layoutWindows" if you want to change a layout window property.
2) Although this does help, is there a way to prevent it from happening?
     The reason I ask is because in a script which adds many pages, (e.g., MultiPageImporter script), the script needs to do this after adding each page.
No, you cannot prevent it in any way. It's just ID's default built-in behavior (although it seems strange that this only happens when using a script!).
But I disagree with your assessment it needs to be done "after adding each page". ID does not store the zoom percentage for each separate page and so it is enough to read the current zoom, add as much pages as you like, then set the zoom.

Similar Messages

  • Settings changing when adding to another movie

    Each time I attach a new chapter (mini movie) PROJECT to the already existing main movie PROJECT the settings change. I have tried adding on the front with the new chapter as well as trying to add the main movie to the mini movie. Is there a way to lock all settings on a movie so when it is added to another movie the setting won't change oon either clip. The chapter movie is approximately 1 1/2 minutes long and the main clip is approximately 9 Minutes long. There are several transitions, and scrolls included in both clips.
    Message was edited by: jimfromdenver

    Hi Luis, thanks for the reply. I first made a video approximately 8 minutes long. I used digitized video, still images, sound tracks, titles and numerous transitions between the clips. I then opened a new project and made a movie of one of the last letters sent home by the veteran prior to his death. I also used transitions, movie clips, titles and various images. So far I have three of these last letters completed. I was able to copy and pasted two of the letter clips in front of the main generic movie. However, when I attempted to paste the third clip at the beginning of the main movie and two letters - it causes some of the titles, scrolls to overlap.

  • Level change when adding audio keyframes

    Hi all,
    I've been in Avid Land for the last few months and just came back and noticed something that was getting on my nerves when I left (I don't recall seeing this before FCP 6). When I add keyframes to my audio levels with the pen tool, I get a keyframe, but at the same time, it lowers my level as if I had added a keyframe and then dragged it down. As far as I can tell it does this every time.
    Does anyone know what this is about?
    Thanks,
    Matt

    I was having this problem, so just before I composed this reply I did some tests. It could well be 'sloppy mouse work' but I don't think so. This time the audio level went up by 1 db but before it was dropping by 1 db when adding a keyframe. During the test, no matter how accurate I was the audio level changed when adding a keyframe. The track I was working on was enlarge somewhat and the problem didn't happen on standard sized tracks. I feel that this has to be some sort of bug.
    I have always found FCP a little bit on the 'accurate' side. You have to be very precise when clicking on items otherwise you will miss. Some buttons are way too small and I think Apple could improve the FCP workflow by enlarging some buttons and allowing more space around clickable items.
    A good example of this is the 3 way colour corrector. The left and right buttons for blacks/mids/whites are very hard to hit and I quite often hit the maximum by mistake.
    I have worked on many non-linear systems and FCP is the only one where mouse accuracy is so important.
    I am, to some extent used to this now and I suppose it is a minor inconvenience in comparison to the benefits of using FCP but, in the interests of improvement and ease of use it would be good if Apple could take this onboard.
    Weenie.

  • Page side varies when adding pages

    Dear all,
    When i add pages in stacked document that will starts in left hand side as in the below screenshot
    it will change as right hand and new pages will inserted in left hand as below when added thru script
    of same spread but when do manually it ll insert correctly as below
    Please help me to do thru script as above.
    Thanks in advance,
    Sankar

    Shankar, activate the Pages window by press the F12 key.
    Activate the "Allow Document Pages to Shuffle"
    Activate the "Allow Selected Spread to Shuffle"
    As per the below screenshot. Hope it helps.

  • Sequence Settings message when adding LT clip

    I was one who took the plunge with QT 7.4.5.
    I'm running FCP 6.0 on OS 10.5.2
    I found upon importing a rendered Livetype clip that when adding to timeline it shows this message:
    <Warning This clip does not match this sequence's settings or any of your sequence presets
    For best performance your sequence and External Video should be set to the format of the clips you are editing.
    Change sequence settings to match the clip settings.?>
    If I say no, it needs to be rendered. If I say yes it adds to the timeline without needing rendering.
    BUT...THen any other previous clips added from the project force the above message.
    I am wondering what in my preferences are being affected and what is a good workaround?
    Perhaps just adding and re-rendering in FCP?
    Thanks!

    Duh..I was looking in preferences, and now I vaguely remember this menu.
    Thanks ThrillCat!!

  • When adding pages, keeping size the same

    It seemed so easy but, NO. How does one attach pages from a file and keep the pages the same size?

    I may not described my problem clearly. The last page of the document I wish to add to, when it is displayed full-screen is shown to be 18.4% (Zoom to page level). The first page of the new document (File) I want to add, when it is displayed full screen, is shown to be 71.1% (Zoom to page level). The result of adding the new page is that, when the complete document is viewed, the last page (the newly-added page) is miniscule, compared to the preceding page. I simply do not have enough experience to figure out what to do.

  • Printer Settings change when switching between printers

    First time in the forum, so please be gentle.  I know little about Adobe.
    I am working with Windows XP (SP 2) machines (I know - should be at least on Windows 7, but can't change what my company has) and have Adobe Reader 8.1.2.  We have run into a "bug" of sorts. 
    Many of our locations (these are PCs all off-site) print labels (pdfs) with a Zebra brand printer where the labels are 2.25 by 4.00 inches.  The Zebra printers are always attached directly to the PCs where they create these labels.  Sometimes, they want to send the labels to a Lexmark printer that is attached at a Primary Server elsewhere.  When they do that, they make sure to choose "Fit To Printable Area" under Page Scaling when the Print Box comes up so that the 2.25x4.00 label is enlarged to fit on 8.5x11 inch paper.  The problem we run into is that right now, the default settings for these Zebra printers is 2x3 inches and Portrait.  We need them to be 2.25x4 and Landscape.  The user makes those settings changes and saves them and it used to be those settings hold once they save them.  We also have to change our Lexmark settings to "Letter - 8.5x11", otherwise it defaults to "Custom-4.88x21".  Recently, there's been this bug where if they save the settings for Zebra, print something, it's fine.  They switch to Lexmark, print to it with "Fit to Printable Area" it's also fine.  When they go back to the Zebra printer, suddenly the saved settings are gone and it's back to default.
    This also is happening in the reverse - if the user usually uses the Lexmark, but switches once to the Zebra, then back to the Lexmark, the settings have defaulted again.  Someone here said they remember seeing something like this before in regards to Adobe Reader.  Does anyone have any ideas?
    PS - I am creating a new image which will have the correct default settings for our needs so that hopefully this will not be an issue in the future.

    Hi BigRedEO,
    Thank you for posting on the forums. This seems more like a printer issue as it is not retaining the settings.
    Kindly try updating the drivers for the printer and check.
    Thanks,
    Vikrantt Singh

  • [JS CS3] Page side when adding pages

    Hello all,
    I am using a script to remove oversets by adding pages with linked text frames to the end of the document. When I am done removing the oversets, I check to make sure the document ends on a left page; if not, I am using the code below to add an extra page. However, the page ends up as a second right hand page right next to the previous one. How do I ensure that the page I add is a left-hand page. Thanks in advance.
    Rick Quatro
    rick at frameexpert dot com
    585-659-8267
    // Set a variable for the active document.
    var oDoc = app.activeDocument;
    // Call a function to remove the oversets
    // Make sure the document ends on a left page.
    if (oDoc.pages[-1].side == PageSideOptions.RIGHT_HAND)
    AddPageAndLinkedTextFrame(oDoc);
    function AddPageAndLinkedTextFrame(oDoc)
    var oPage = oDoc.pages.add(LocationOptions.AFTER,oDoc.pages[-1]);
    var oTextFrame = oPage.textFrames.add();
    oTextFrame.geometricBounds = GetPageMarginBounds(oDoc,oPage);
    oTextFrame.previousTextFrame = oDoc.pages[-2].textFrames[0];

    in "standard" document - without page shuffling, etc. - you can do something like this (VB):
    if mydoc.pages.item(a) mod 2 then
    ' right page
    else
    ' left page
    endif
    robin
    www.adobescripts.com

  • Security settings change when rendered from third party Windows 2008 R2 server

    We created a fillable PDF form in Adobe Acrobat and made it Reader extended. Opening the form on a local hard drive the security settings show that Signing: is Allowed. We can sign documents in the form with a signature pad.
    After we upload it to a third party Windows server 2008 R2, and we later go to access the form, the server renders it back to us in Adobe Reader. We are unable to digitally sign documents in the form with a Topaz signature pad. We notice that although the form was originally created with the form being Reader extended the security settings change to Signing: Not Allowed.
    How can we get the server to render the document back to us where we can digitally sign documents in the form?

    The second file still shows the extended rights header is present (it's warning you about restrictions at the top of the dialog while also reporting the method is "no security") but the digital signature which grants those extended rights will be invalidated if *anything* in the file structure is changed. I suspect in this case that the server software is doing something to your file; it may be trivial such as adding an XMP tag, but it's enough to break the hash check.

  • Time and date settings change when phone is powered down (not shut off)..

    I recently installed the iOS 8 update and immediately noticed that the time and date settings would change when I powered down my iPhone. I did not turn off my phone, only clicked the button to power down or save power. I have tried all the fixes, suggestions, etc., but I am still having issues. In the power down state, I am able to receive phone calls or texts but when I go into my phone, the time and date will be off. It stops from the moment I click the button to power down the phone. Please don't get this confused with turning off the phone completely. This happens when I click the button for power down or power save, however it is described.
    So, how do I fix it? Is the app/software for the clock the problem? Is the battery distribution the problem? For some reason, in power down mode, the clock is not receiving constant power in order to keep accurate time. It stops the moment I click the button.  Any suggestions? fixes, etc. I could try. Apple support techs were absolutely no help what-so-ever.

    This sounds exactly like what is going on with my phone, http://www.idownloadblog.com/2012/10/19/iphone-5-date-time-glitch/

  • Sparse templates (when adding page types)

    I'm not sure if this has already been posted in the forum, but I discovered it as I dealt with the growing number of templates, v1.1 templates, and custom templates that my iWeb now has. Also helps stub out the v1.1 'Blank' page type for older custom templates.
    When adding templates to iWeb, iWeb seems to like it's TemplatesInfo.plist to contain EVERY page type for EVERY template. However, as I'm developing a new template, I sometimes like to have just a few page types defined... or, sometimes I create a simple template for a simple site that only has a couple of page types.
    So, when I am defining the new entries for each template within a page type, I specify a bogus filename (I use "Unavailable.webtemplate") for any entry where I don't have that page type / template combination. For example, if my "DogDays" template only has a Welcome and Blog page type, then in every other page type the DogDays template's entry will use the bogus filename.
    Pictures help make this much more clear, so here's a page that I posted to remind me how to add a new page type... I use the bogus "Unavailable.webtemplate" in the example:
    http://web.mac.com/dovinci/iWeb/dovinci/New%20Page%20Types.html
    It also shows what the "page picker" in iWeb looks like.
    Mac Mini, PowerBook, MacBook Pro   Mac OS X (10.4.6)  

    Hi,
    The design for a calendar date box is determined by the "formRegionBody" class style (at least according to theme 12). You, therefore, need to update this.
    In theme 12 ("Blue"), this is defined in the css as:
    .formRegionBody {
    font-size:12px;
    font-weight:normal;
    color:#285577;
    background-color:#D7DFE6;
    border-left:1px solid #BFBFBF; border-top:1px solid #BFBFBF;
    border-right:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;
    You can either update the css or add the above in a style tag on your calendar page (adjusting the colours as required).
    Regards
    Andy

  • InDesign CS5 crashes when adding pages - is there an answer yet?

    Having scouted around I can see lots of people have this (or a similar) problem, but with far more specific circumstances than mine - e.g. in templates, or with documents created in previous versions, or when adding more than 10 pages, etc.
    Mine is a 'virgin' CS5 install, I've been away since PageMaker 6.5 and I'm not trying to salvage any of that stuff! Every time I try to add pages in the middle of a document it crashes, regardless of how many I try to add. A work around which sometimes works is to add them at the end of a document and then drag them to where they are needed.
    Looks like this problem is widespread, I see lots of people talking about it going back almost a year, but can find no mention of it or possible solutions from Adobe. Are these forums just a sop to the user, a place to moan and vent without ever getting answers or acknowledgement that a problem exists? No offence Adobe, but I don't have time to join a community or spend hours on forums, I'm too busy. I need software that works and timely answers.

    Pixate wrote:
    Looks like this problem is widespread, I see lots of people talking about it going back almost a year, but can find no mention of it or possible solutions from Adobe. Are these forums just a sop to the user, a place to moan and vent without ever getting answers or acknowledgement that a problem exists? No offence Adobe, but I don't have time to join a community or spend hours on forums, I'm too busy. I need software that works and timely answers.
    First, I don't recal more than one or two threads reporting a problem like this that wasn't related to some sort of configuration issue on the user's machine (notably the 3-column master issue that John has mentioned), and that hardly qualifies as "widespread" around here. Poviding full details about what version of ID, including the patch level, and your OS, along with exactly what you are doing, what happens, and any error messages you receive, and what you've already tried to solve the problem, will get you better help faster.
    Second, you are not talkint to Adobe here. If you want to waste your time talking to tech support, you need to do that on the phone. The people here are user volunteers. We don't write the code and have no influence over what happens in engineering, but we do have a lot of collective real world experience that gladly share, and there are very few problems other than genuine bugs that we don't solve. But if you don't have time to participate in the community there's a pretty good chance the community won't find time for you.

  • Screen color settings changes when certain software is launched.

    Since today I noticed the screen color settings of my Macbook Pro 17" (beginning 2011 model — Running OSX 10.8.4) is changing when certain software is launched. In this case, Indesign CS6.0 gives a strange blue hue over my screen, but when I check my screen color settings, nothing has changed, everything is set the same as when I don't run the softwares that change my screen color settings. I don't recall changing any settings that could have triggered this action. I didn't change any settings in Indesign CS6.0. I do regularly use CleanMyMac 2 to clean out my computer, maybe this has changed some settings? How can I change this back to normal? Google didn't help me neither.

    Ah right, don;t use laptops much and always forget about that one, good catch. Switching graphics cards would definitely have an effect.
    Just remember with that unchecked you will decrease battery run time so you might want to switch it back on when you are not doing graphics and you are on battery.
    regards

  • My settings change when I change sim card?

    Hi,
    I am going to go to Croatia for a holiday. I would like to buy there some prepaid sim-card. Does Blackberry's settings will change or it would be all the same when I will change simicard?
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!
    Nothing should change when you do this. With legacy BB devices, there could be some changes...but with BB10, nothing should change.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to make signature field work for reader users? Security settings change when doc is extended???

    I've been struggling to correct a problem all week and am at my wits end. Customer service was no help as the person I spoke with could barely speak english let alone understand the problem as I explained it to him. Hoping someone here can provide some insight, here's the issue:
    I'm using a Windows 7 Professional OS. I created a Microsoft Word doc and used Adobe Acrobat XI Standard to create a form from it. It automatically detected the fields, which includes a signature field. I went through fixed it all up how it needed to be and did "save as other - reader extended pdf - enable forms fill in & save in reader".
    The document is a report that will be sent to a small number of people that have to fill it out, digitally sign and return and I'm assuming that most if not all of them will open the document using the free Adobe Reader. So I thought extending it is what I needed to do to make sure they could fill it out, save it to their computer if need be, and also sign digitally. The signature field was automatically added in by acrobat for me and I did not change the properties of it at all except to add a border.
    When I open the form in Reader (also XI) I can fill out all the fields, save it... but not sign it. The security settings say signing is not allowed even though I went back to the original pdf form and the security settings on it say allowed for everything. I don't know how to fix this... please help!!!
    I've attached some screen shots but can include more if needed...

    I don't have the Enable More Tools option under Reader Extended PDF. I just tried to download the XI Pro trial version and it won't complete installation because of the standard version I already have. Any advice or workarounds you know of? Going to the boss for $$ to upgrade to Pro is what I'll consider my last resort if the issue is truly that I have to use Pro to enable more tools for reader.... I appreciate your reply though. I sat here all day yesterday fingers crossed that SOMEONE would give it a go!

Maybe you are looking for

  • How to make rtp udp datagram pass thru proxy server?

    I have to make a video stream system. And I found that there are a lot of user is behind the firewall or proxy server, how should i do to make the udp streaming media pass thru the firewall or proxy???? does the https tunnel help?

  • Drag and Drop - Help Plz!

    I am doing a project that involves Drag and Drop with JLabels. What i want to do is: When the draggable is dropped onto the droppable JLabel, I want to update the position of the draggable. So far, when i try to update the position of the dragged JLa

  • Won't export files as a MP4

    Hi all, So I have Final Cut Pro version 5.1.4 and it is now no longer letting me export files as a MP4. I have always done it the same way for the last couple of years which is basically the settings that youtube suggests. I go to quicktime conversio

  • FM to Transfer text file from SAP to Windows Network Folder

    Hi Guys, I have requirement, where I am generating a text file thru the program and program take the path and stores the file..every thing works fine.. but the problem is that, I am searching for a FM with which, A restricted user defined folder from

  • Lost Apple dvd software after reinstall

    After a Lion bad dream, I decided to go back to Snow Leopard. Only way to do it was to completely erase HD and clean install. Which I did. All painfull step by step. Only to find that some marvelous little software I had installed on the HD at purcha