Skip to main content
B_C_E_75
Inspiring
March 11, 2025
Answered

Change page view size when opening file

  • March 11, 2025
  • 7 replies
  • 1227 views

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. 

    Correct answer frameexpert

    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;
        }
    }
    

    7 replies

    frameexpert
    Community Expert
    frameexpertCommunity ExpertCorrect answer
    Community Expert
    March 12, 2025

    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;
        }
    }
    
    B_C_E_75
    B_C_E_75Author
    Inspiring
    March 12, 2025

    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. 

    frameexpert
    Community Expert
    Community Expert
    March 12, 2025

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

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

    B_C_E_75
    B_C_E_75Author
    Inspiring
    March 11, 2025

    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%. 

    frameexpert
    Community Expert
    Community Expert
    March 11, 2025

    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.

    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    March 11, 2025
    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...

    David Creamer: Community Expert (ACI and ACE 1995-2023)
    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    March 11, 2025

    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#

     

     

    David Creamer: Community Expert (ACI and ACE 1995-2023)
    Barb Binder
    Community Expert
    Community Expert
    March 11, 2025

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

     

    ~Barb

    ~Barb at Rocky Mountain Training
    B_C_E_75
    B_C_E_75Author
    Inspiring
    March 11, 2025

    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. 

    Bob_Niland
    Community Expert
    Community Expert
    March 11, 2025

    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.

    B_C_E_75
    B_C_E_75Author
    Inspiring
    March 11, 2025

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

    B_C_E_75
    B_C_E_75Author
    Inspiring
    March 11, 2025

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

    Barb Binder
    Community Expert
    Community Expert
    March 11, 2025

    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

     

     

    ~Barb at Rocky Mountain Training
    B_C_E_75
    B_C_E_75Author
    Inspiring
    March 11, 2025

    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!