mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
197 stars 62 forks source link

[1.26.0] Max zoom 85, even for 100 or 125% on dropdown, or [1] (100%) icon. #575

Open SimonDedman opened 1 year ago

SimonDedman commented 1 year ago

Expected behaviour

Be able to zoom to whatever the max zoom is (400%?) with ctrl+mousewheel, and/or respect zoom dropdown, and 100% icon, commands.

Actual behaviour

Zoom maxes out at 85%. Selecting 100 or 125% on the dropdown doesn't increase the Zoom, but does remain on the selected zoom level, which is incorrect. Having selected 125% on the dropdown, hitting [1] (reset zoom to 100% button) changes zoom back to 85%.

Steps to reproduce the behaviour

Maybe this is document-specific but zoom past 85% works on a different PDF program. PDF: https://charts.noaa.gov/PDFs/4149.pdf

MATE general version

Xubuntu 22.10

Package version

Atril 1.26.0

Linux Distribution

Xubuntu 22.10

Link to bugreport of your Distribution (requirement)

No posted to distro bugreps, posted here directly.

lukefromdc commented 1 year ago

I found on my system that zoom maxed out at different levels on different documents usually at 200 or 300%, no idea what controls that. It's not font rendering size, I saw 200% with several files w different size font, seemed to be the most common but I also saw 300%

SimonDedman commented 1 year ago

Cheers Luke. Out of interest, what was your max zoom on that linked PDF above?

lukefromdc commented 1 year ago

Showed a maximum of 125 available in the zoom combobox, default of 50%, and would not zoom at all. Large file and very slow to load so maybe unresponsive to rather than refusing a zoom attempt? Then I found "fit page" and "fit width" would work, and it would then zoom to 50% or 75% if "fit width" was the last selected value. This on a 4K monitor w 16GB of RAM btw.

akshaykhoje commented 1 year ago

Since this issue is unresolved, I am facing similar issue on my Debian11 Bullseye MATE machine.

The maximum zoom that I am able to do is 300% for any document. However, the max zoom-limit as shown in the zoom options is 400%.

No changes after clicking on 400% are seen. It remains the same as it would for 300%.

OS : Debian 11 Bullseye DE : MATE 1.24.1 Atril version : 1.24.0-1

dumblob commented 4 months ago

I am facing a similar issue as @akshaykhoje . Namely if I zoom using + the highest zoom I get is equivalent to "fit page width". Same goes for clicking on any higher zoom level (e.g. 400%) in the drop down menu. It simply does not change the zoom (but changes the number in the drop down menu).

Funnily enough, repeatedly pressing - brings me to a much lower (about 5 zoom levels lower) zoom than the lowest zoom from the drop down menu (which is 50%).

Note I have tested this on a 4k screen with these environment variables:

export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_FONT_DPI=370
export QT_QPA_PLATFORMTHEME=qt5ct

(yes, these refer to QT but nowadays one never knows if GTK does not try to use this information too somehow :wink:)

lukefromdc commented 4 months ago

QT environmental variables should be entirely ignored by GTK as far as I know

ccazabon commented 3 months ago

FWIW, I'm also experiencing this issue. With the map downloaded from this public website: https://www.regina.ca/export/sites/Regina.ca/about-regina/regina-history-facts/.galleries/pdfs/Tourist_Map_2024_January.pdf

... I can't get the zoom higher than 70%. The zoom drop-down shows values up to 85%, nothing higher, but 85% doesn't work - it just shows the same as the 70% zoom.

The "Zoom In" menu item is disabled/deactivated whether the zoom is currently set to 70% or 85%. If I drop to 50%, the "zoom in" item is re-enabled until I zoom to 70% or higher.

I've tried expanding the window significantly to see if it is something like equivalent to fit-width, but it appears to make no difference for me.

Happy to help diagnose if there are info-collection steps you'd like me to take.

lukefromdc commented 3 months ago

Unfortunately I don't know enough about Atril's internal code to help with that, leaving it for others on the team to work on but I usually try to at least get some information for them to work with, as in this case.