This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

How to change incorrect values of the zoom function of Okula

Tags: None
(comma "," separated)
ocikab
Registered Member
Posts
1
Karma
0
Hello,
I installed Okular on three PCs under Linux Mint 19.3 Cinnamon, with the Flatpak installation system. On one of them, I have a problem with the zoom function : when selecting the "Adapt to the width" value, the display is OK, but when I select the 10% value, it becomes very large and displays about half of the page. When I select 100%, the display is huge and there are only a few letters on the screen. When I select once again "Adapt to the width" value to start from a correct display and I try to zoom by clicking on the wheel and moving the mouse forward and backward, display jumps to 10% value and displays half of the page, and zooming cannot become smaller, only larger.

On the two other PCs, everything is fine : zoom at 10% is very small as it ought to be, and when I select the "Adapt to the width" value and then try to zoom down with the mouse, the page displayed becomes smaller smoothly, down to the 10% value.

I reinstalled Okular several times on the first PC, to no avail. I could not find either which configuration file or environment variable could control the behavior of the zoom function.
Thank you very much in advance for any hint !

Edit (2020-06-27)
I noticed further that the problem with the zoom function does not exist for epub files nor png images, so it seems to be specific for pdf files.
jdvm
Registered Member
Posts
7
Karma
0
OS
I'm experiencing this problem too. I can't remember when it started, though.

Viewing a PDF file with a size of 216 x 279 mm. The zoom is too close and makes very uncomfortable to read the file unless the zoom is Fit to Page or Fit to Width:

https://streamable.com/6fi1sh

The same file in Firefox with a Zoom Level of 100%:



And viewing a Comic Book file. The zoom works fine (there is no info for pages size):

https://streamable.com/0bs1j8

I found this but I think X Server is getting correctly the size of my screen:

https://askubuntu.com/questions/773648/ ... -too-small

Edit: I have installed evince using Discover (Snap version 3.38.2+git10.21d57a77) and the PDF zoom looks better. It's strange because both Okular and evince use poppler to render PDF, I guess.

Okular and evince zoom levels comparation:





My device outputs this:
Code: Select all
xdpyinfo | grep -B2 resolution
screen #0:
  dimensions:    1920x1080 pixels (508x285 millimeters)
  resolution:    96x96 dots per inch

It's a bit smaller but not too much.

I created the file /etc/X11/xorg.conf.d/90-monitor.conf with:
Code: Select all
Section "Monitor"
    Identifier             "HDMI-1"
    DisplaySize             475 267    # In millimeters
EndSection

I also created the file ~/.Xresources with:
Code: Select all
Xft.dpi: 96

Nothing solved the problem.

From the Xorg log:
Code: Select all
Setting screen physical size to 475 x 267

Xrandr output
Code: Select all
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) [b]16mm x 9mm[/b]
   1920x1080i    60.00*+  50.00    59.94 
   1920x1080     24.00    23.98 
   1280x720      60.00    50.00    59.94 
   1024x768      75.03    70.07    60.00 
   832x624       74.55 
   800x600       72.19    75.00    60.32    56.25 
   720x576       50.00 
   720x576i      50.00 


And partial output of get-edid
Code: Select all
Section "Monitor"
        Identifier "22W_LCD_TV"
        ModelName "22W_LCD_TV"
        VendorName "VES"
        # Monitor Manufactured week 1 of 2012
        # EDID version 1.3
        # Digital Display
        DisplaySize 160 90


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell