sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

custom zoom presets and fit to fixed zoom option

Open staaandup opened this issue 4 months ago • 6 comments

please add an option to save custom zoom levels to the menu or hotkeys for example i often use 77% zoom and setting it every time through menu>zoom>custom is tedious if it was like menu>zoom>77% it would be much easier. also add a feature like "fit to width" or "fit to height" but for a fixed zoom for example "fit to 100%" or "fit to 77%" this would make reading comics or manga much easier. zoom control is important to me in sumatra pdf and i would appreciate these two features.

staaandup avatar Sep 02 '25 18:09 staaandup

you can add a preference such as 77% to sit between others so it STEPS through that value or add presets

Image and you can open files at say 77 %

Image

Both these are controlled in 3.6advanced settings by ZoomLevels = 77 Image

or add a shortcut/icon for a given zoom

Image
Shortcuts [
    [
        Cmd = CmdZoomCustom 77%
        Key = 7
        ToolbarText = 77%
    ]
]

GitHubRulesOK avatar Sep 02 '25 20:09 GitHubRulesOK

thanks for the tips! i didn’t know about the zoomlevels 77 setting or the shortcut method this will save me a lot of time. i’m still hoping there could be a fit to fixed zoom feature like "fit to 50%" or "fit to 77%" similar to fit to width or height but with a set zoom level

staaandup avatar Sep 03 '25 01:09 staaandup

There are still some open issues related to such desires the fit height/width to 77% is simply fit single page at a custom zoom as the two would usually be mutually exclusive or require adjusting the window shape.

can you illustrate what you mean in practical image terms

GitHubRulesOK avatar Sep 03 '25 02:09 GitHubRulesOK

i usually read at a fixed zoom level of 77% cuz most comics or manga i download dont look good at 100% and 77% is the sweet spot sometimes i get a double page spread a wide image over two pages then i have to zoom out to 50% or 40% or use "fit to width" to see it all after that i need to go back to 77% manually if i stay on "fit to width" the next page looks bad and pixelated and if i stay at 50% or 40% its too small to read i want a "fit to specific zoom" option like "fit to 77%" that shows all pages at that zoom kind of like "fit to width"

here is "fit to 48%" for example

Image Image

staaandup avatar Sep 03 '25 03:09 staaandup

hmm what you are asking for seems to be adjust all widths to a common width which could be 50% or 52% or 48% as that is the zoom setting in your 2nd illustration. However, SumatraPDF only stretches pages to fit a common screen boundary, in some cases, and has caused some issues to remain open related to https://github.com/sumatrapdfreader/sumatrapdf/issues/41 https://github.com/sumatrapdfreader/sumatrapdf/issues/767 https://github.com/sumatrapdfreader/sumatrapdf/issues/1324 and most like https://github.com/sumatrapdfreader/sumatrapdf/issues/2197

this was attempted ? in https://github.com/sumatrapdfreader/sumatrapdf/issues/152 and https://github.com/sumatrapdfreader/sumatrapdf/issues/1184

GitHubRulesOK avatar Sep 03 '25 03:09 GitHubRulesOK

thanks for sharing those, i didn’t realize there were already related discussions after reading them, what i’m asking for is basically the same thing i can kind of get what i want by using “fit width” with “show pages continuously” and then resizing the sumatra pdf window, but i really want the window to cover my whole screen so i can read comfortably maybe there’s a way to trick sumatra into thinking the window is resized to 70% and make all images fit that, or something similar, i’m not sure i’d still really like to see this added, even as an experimental or advanced option

staaandup avatar Sep 03 '25 04:09 staaandup