Attach (recommended) or Link to PDF file here: sample file
This is a typical mixed-page-orientations document that you'd encounter in public sector documents featuring architectural plans or spreadsheets landscape pages along with regular portrait-oriented text pages.
Configuration:
Web browser and its version: Firefox 126
Operating system and its version: Fedora 39
PDF.js version: I don't know (the one that comes with Firefox)
Is a browser extension: No
Steps to reproduce the problem:
Open the linked sample
Set zoom mode to "Fit Width"
Notice the 2nd page is cut-off because it is not shrunk to width
Scroll to the 2nd page, Ctrl+R to reload
Notice the 1st page is now shrunk below half of the canvas width, instead of being full width
What is the expected behavior?
Each page should fit to width.
I suppose that behind the scenes, the zoom should be applied to individual pages rather than globally to the document. In the video shown in https://gitlab.gnome.org/GNOME/Incubator/papers/-/issues/161#note_2139951 you can see that LibreOffice Writer and Okular take different approaches to solve the problem: Writer adjusts the global zoom when you focus (click) the page in question, whereas Okular just sets the zoom for each page individually to fit the width.
Attach (recommended) or Link to PDF file here: sample file
This is a typical mixed-page-orientations document that you'd encounter in public sector documents featuring architectural plans or spreadsheets landscape pages along with regular portrait-oriented text pages.
Configuration:
Steps to reproduce the problem:
What is the expected behavior?
Each page should fit to width.
I suppose that behind the scenes, the zoom should be applied to individual pages rather than globally to the document. In the video shown in https://gitlab.gnome.org/GNOME/Incubator/papers/-/issues/161#note_2139951 you can see that LibreOffice Writer and Okular take different approaches to solve the problem: Writer adjusts the global zoom when you focus (click) the page in question, whereas Okular just sets the zoom for each page individually to fit the width.