Cimbali / pympress

Pympress is a simple yet powerful PDF reader designed for dual-screen presentations
https://cimbali.github.io/pympress/
GNU General Public License v2.0
1.18k stars 89 forks source link

Wrongly sized slides in deck overview #272

Closed Cimbali closed 1 year ago

Cimbali commented 1 year ago

Describe the bug In deck overview, slides appear 1/4 of the size they should have

To Reproduce Open deck view on a single-page A4 PDF on Windows

Expected behavior Well sized pages

Screenshots Without notes mode: image

With notes mode: image

Environment (please complete the following information):

Debug information (see below for file locations)

log contents:

INFO:pympress.app:Pympress: 1.8.0 ; Python: 3.10.10 ; OS: Windows 10 10.0.19044 ; Gtk 3.24.37 ; GLib 2.74.0 ; Poppler 23.02.0 cairo ; Cairo 1.17.8 , pycairo 1.23.0
INFO:pympress.extras:Media support: GdkPixbuf gif player, GStreamer not available, VLC 3.0.17.4 Vetinari
WARNING:pympress.ui:Gtk.Application.inhibit failed preventing screensaver, trying hard disabling
ERROR:pympress.scribble:Error creating highlight cache
Traceback (most recent call last):
  File "D:/a/pympress/pympress/pympress/scribble.py", line 412, in reset_scribble_cache
  File "D:/a/_temp/msys64/mingw64/lib/python3.10/site-packages/gi/module.py", line 155, in __getattr__
ValueError: invalid enum value: 5
Cimbali commented 1 year ago

Can reproduce on Linux with single-page documents of various aspect ratios.