Bookmarks not shown for a particular PDF
SumatraPDF version
- v3.6.16022 64-bit
Describe the bug SumatraPDF doesn't show any bookmarks for the following PDF file, but Chrome does.
File that reproduces the problem David Freedman_ Robert Pisani_ Roger Purves - Statistics.pdf
Screenshots
According to mupdf this pdf file is malformed:
Bad or missing prev pointer in outline tree, repairing
format error: Outline last pointer still bad or missing despite repair
Couldn't load outline for 'C:\Users\kjk\Downloads\David.Freedman_.Robert.Pisani_.Roger.Purves.-.Statistics.pdf'
Hmm in such cases I try different tricks to fix but Acrobat Reader and Pdfium Edge will often reshuffle contents but the bookmarks are still the same even though one file is now bigger and one now smaller!
The best of the Lot is MuPDF-GL and again it sees the bookmarks as working yet offers a fix, but I have to fiddle with settings to ensure it alters to include the bookmarks.
Uploading David.Freedman_.Robert.Pisani_.Roger.Purves.-.Statistics - Copya.pdf…
We can see the signature is now Mupdf compatible too (%µ¶)
According to mupdf this pdf file is malformed:
But, MuPDF-GL (v1.23.0) displays the bookmarks correctly. So, I think that the issue is in SumatraPDF.
(I am not saying that the PDF doesn't have any issues. But, if MuPDF can display it correctly, SumatraPDF should also do the same.)
The best of the Lot is MuPDF-GL and again it sees the bookmarks as working yet offers a fix, but I have to fiddle with settings to ensure it alters to include the bookmarks.
@GitHubRulesOK, how did you use MuPDF-GL to repair the PDF? I know about mutool clean. Are you talking about that?
It doesn't work in latest mupdf, I opened an issue https://bugs.ghostscript.com/show_bug.cgi?id=707750
@user1823 No MuPDF viewer is also a format editor you can do many things such as draw annotation with or without incremental save or in this case resave with corrected syntax. similar to command line clean but inside a gui. the flag that there is a problem is a very small asterix in title bar but simple "Save as" did not clear the problem and acrobat or tracker did not grumble either as they could also work within any error tolerance!
@kjk FWIW the poor file worked in 1.20 Mu.PDF-GL (last official 32bit) but agreed NOT my compiled 1.25 which also causes me other issues ?
resave with corrected syntax. similar to command line clean but inside a gui.
Exactly how? I couldn't find any reference online.
Sorry if I am diverging from the main issue too much.
@user1823
press A bottom right "save as pdf" > deselect incremental and then the cleanup commands should be at the bottom
Save as must be a new name and needs click not enter !!
"Bad or missing prev pointer in outline tree, repairing"
Could someone explain where/what this "outline tree" is? I see nothing named that in the UI or Help.
@chrisjj The Adobe official name for the (external to page) list of named pointers / contents is called an "Outline" of contents which are random PDF objects that name pages and are displayed as whole "Book" marks commonly call in many PDF viewers a ToC, BookMarks [sidebar] navigator or shown as a TreeView.
It is a complex set of previous and next branching so not easy to show except one at a time but needs a previous or next decimal address for navigation and relative parent child nesting.
Thanks. So this outline tree in SumatraPDF is in the Bookmarks pane?
yes I see you wish to show all names covered in page window but that is not easy PAGES do not contain their names it is the tree has next name and just current page Thus when focus is in Bookmarks easy to show a page but NOT easy other way round to say which marks are in future or past for that page.