sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Incorrect bookmark navigation in PDF with pages with different orientation

Open kjk opened this issue 6 months ago • 2 comments

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.

Test1.pdf Test2.pdf

Originally posted by @mdvvv in https://github.com/sumatrapdfreader/sumatrapdf/discussions/4943

kjk avatar Jun 05 '25 16:06 kjk

Confirmed happens in pre-releaes

kjk avatar Jun 05 '25 16:06 kjk

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

mdvvv avatar Jun 05 '25 16:06 mdvvv