Skip to main content
B_C_E_75
Inspiring
Mar 11, 2025 4:06 PM UTC
Answered

Change page view size when opening file

I'm using the latest Framemaker ( 17.0.2.431 ) and just installed bigger 32' dual monitors. Its amazing to see things bigger on screen, but I was wondering if there was a way to set the page view size or page zoom when FM opens a document? I'd much rather a single page take up the entire viewable area than to see multiple pages or only a section of another page. Currently, when FM opens a document it opens at 100%. That was fine on my older 24" monitors. 100% on my new monitors displays either 2 pages next to each other or 1/4 of the following page. If there was a way to set the default page view to 120% or to Fit Page In Window, that would be great. I just haven't been able to find a way to set it. 

    frameexpert
    frameexpertCorrect answer
    Community Expert
    Mar 12, 2025 2:18 PM UTC

    What's a FrameMaker problem without a scripting solution? Copy the code below and paste it into a new text document and save it with a .jsx extension. Put it in C:\Users\<UserName>\AppData\Roaming\Adobe\FrameMaker\17\startup where <UserName> is your Windows login name. Create the startup folder if it doesn't exist.

     

    Restart FrameMaker. Now every document you open will be scaled to 120%. You can change the value in the script, but you have to quit and restart FrameMaker for the new value to take effect.

     

    Notification (Constants.FA_Note_PostOpenDoc, true);
    
    function Notify (note, object, sparam, iparam) {
        
        switch (note) {
                
            case Constants.FA_Note_PostOpenDoc :
            
    		    if (object.constructor.name === "Doc") {
    		        // Use percent divided by 100; for example 1.2 = 120%.
    		        object.Zoom = 65536 * 1.2;
    		    }
    		    
                break;
        }
    }
    
    www.frameexpert.com

    20 replies

    frameexpert
    Community Expert
    frameexpertCommunity ExpertCorrect answer
    Community Expert
    Mar 12, 2025 2:18 PM UTC

    What's a FrameMaker problem without a scripting solution? Copy the code below and paste it into a new text document and save it with a .jsx extension. Put it in C:\Users\<UserName>\AppData\Roaming\Adobe\FrameMaker\17\startup where <UserName> is your Windows login name. Create the startup folder if it doesn't exist.

     

    Restart FrameMaker. Now every document you open will be scaled to 120%. You can change the value in the script, but you have to quit and restart FrameMaker for the new value to take effect.

     

    Notification (Constants.FA_Note_PostOpenDoc, true);
    
    function Notify (note, object, sparam, iparam) {
        
        switch (note) {
                
            case Constants.FA_Note_PostOpenDoc :
            
    		    if (object.constructor.name === "Doc") {
    		        // Use percent divided by 100; for example 1.2 = 120%.
    		        object.Zoom = 65536 * 1.2;
    		    }
    		    
                break;
        }
    }
    
    Translate
    www.frameexpert.com
    B_C_E_75
    B_C_E_75Author
    Inspiring
    Mar 12, 2025 2:34 PM UTC

    I pasted the text into notepad, saved as a .jsx file, and went to the system folder you told me to. There wasn't a startup folder, so I created one. I named it startup and my windows username (startup bce75), correct? I then pasted the .jsx file into this folder. 

    Translate
    frameexpert
    Community Expert
    Community Expert
    Mar 12, 2025 2:39 PM UTC

    No, just "startup". FrameMaker will only load scripts from this folder. So it should be:

    C:\Users\bce75\AppData\Roaming\Adobe\FrameMaker\17\startup

    Translate
    www.frameexpert.com
    B_C_E_75
    B_C_E_75Author
    Inspiring
    Mar 11, 2025 7:07 PM UTC

    I changed the zoom settings in both maker.ini files and neither one changed anything when the document opens. It sill opens at 100% unless I save the document at 120%. 

    Translate
    frameexpert
    Community Expert
    Community Expert
    Mar 11, 2025 5:48 PM UTC

    The zoom setting is a document property and is saved with the document. If you are viewing at 120% and save the document, it should be at that view the next time you open it.

    Translate
    www.frameexpert.com
    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    Mar 11, 2025 5:49 PM UTC
    quote

    The zoom setting is a document property and is saved with the document. If you are viewing at 120% and save the document, it should be at that view the next time you open it.


    By @frameexpert

     

    That's what I always do...

    Translate
    David Creamer: Community Expert (ACI and ACE 1995-2023)
    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    Mar 11, 2025 4:58 PM UTC

    You can set the view to single page view under View > Options. I _THINK_ the ProjectZoomPercentage in the maker.ini file sets the default opening zoom. Make a copy of the original before you edit.

    Location C:\Users\<username>\AppData\Roaming\Adobe\FrameMaker\version#

     

     

    Translate
    David Creamer: Community Expert (ACI and ACE 1995-2023)
    Barb Binder
    Community Expert
    Community Expert
    Mar 11, 2025 4:53 PM UTC

    The .ini file is the initialization file that FrameMaker reads when opening. Was there an option to change anything in there?

     

    ~Barb

    Translate
    ~Barb at Rocky Mountain Training
    B_C_E_75
    B_C_E_75Author
    Inspiring
    Mar 11, 2025 4:59 PM UTC

    It looks like there is! I'm currently editing a few documents and switching between Fm and Illustrator. I'm going to look into it after I'm done. 

    Translate
    Bob_Niland
    Community Expert
    Community Expert
    Mar 11, 2025 4:39 PM UTC

    If Barb is mistaken, which is unlikely, there might be a setting you can adjust in:
    C:\Users\{YourUserName}\AppData\Roaming\Adobe\FrameMaker\17\maker.ini

    Be sure to make a backup copy first.

    Translate
    B_C_E_75
    B_C_E_75Author
    Inspiring
    Mar 11, 2025 4:41 PM UTC

    Hmm, is the maker.ini like a settings or preferences file? 

    Translate
    B_C_E_75
    B_C_E_75Author
    Inspiring
    Mar 11, 2025 4:44 PM UTC

    I was curious so I just copied it and opened it. I guess I answered my own question! Thanks! 

    Translate
    Barb Binder
    Community Expert
    Community Expert
    Mar 11, 2025 4:33 PM UTC

    Hi @B_C_E_75:

     

    Not within the FramewMaker feature set, as far as I know.

     

    As you said, FrameMaker defaults to 100% on opening. I use keyboard shortcuts to quickly change views: Esc z p (sequential not consecutive) is a quick way to put the document to Fit Page in Window view. And since it defaults to 100% and 120% is the next listed view, Esc z i will take you to 120%.

     

    Now Rick (@frameexpert) might have a scripting solution and Jeff  (@Jeff_Coatsworth) seems to know the .ini file well—any other answer may lie with one of them. 

     

    ~Barb

     

     

    Translate
    ~Barb at Rocky Mountain Training
    B_C_E_75
    B_C_E_75Author
    Inspiring
    Mar 11, 2025 4:37 PM UTC

    Thanks, Barb!

    I had a feeling it wasn't possible, but I never thought about keyboard shortcuts! I'm going to try working with those, unless one of the memebers you mentioned may have another alternative. 

     

    Thanks again! 

    Translate