Incorrect bookmark navigation in PDF with pages with different orientation
SumatraPDF does not navigate correctly through bookmarks if the PDF file contains pages with different orientations. Tested on versions from 3.2 to 3.6.
As an example, 2 test files are attached
Launch viewer:
SumatraPDF-3.5.2-32.exe -view "continuous single page" -zoom "fit width" Test1.pdf
SumatraPDF-3.5.2-32.exe -view "continuous single page" -zoom "fit width" Test2.pdf
For example, try to select the Mark4 bookmark and in the Test2.pdf file you can see that the navigation is not correct. When viewing the Test1.pdf file, everything works correctly.
Adobe Acrobat reader, 2345 PDF reader, PDF-XChange are shown Test2.pdf without problems.
Originally posted by @mdvvv in https://github.com/sumatrapdfreader/sumatrapdf/discussions/4943
Confirmed happens in pre-releaes
I will add to my original message:
As a result of experiments, it turned out that the problem is not in the orientation of the pages, but in the different widths of the pages
For example, if a PDF file has pages with a width of both 210 mm and 297 mm, then this problem with incorrect navigation through bookmarks appears