linuxmint / xreader

A generic Document Reader
GNU General Public License v2.0
211 stars 59 forks source link

pdf backend: Ignore FullScreen PageMode catalog entry #633

Closed mpetroff closed 1 month ago

mpetroff commented 6 months ago

Currently, Xreader will start in fullscreen if the PageMode entry in the PDF catalog dictionary is set to FullScreen (as far as I can tell, the PDF backend is the only backend that will do this). More often than I'd like, I end up downloading and trying to open PDFs where this property is set (it's seemingly randomly set on some academic journal articles) and find this behavior quite irritating. I can't think of a use case where this behavior would be desired. Thus, I'd advocate for removing it, which is what this pull request does, although adding a preference is also an option.

Poppler's FullScreen.pdf unit test case can be used to trigger this behavior.