Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bookmarks not shown for a particular PDF #4192

Open
user1823 opened this issue Apr 17, 2024 · 7 comments
Open

Bookmarks not shown for a particular PDF #4192

user1823 opened this issue Apr 17, 2024 · 7 comments
Labels

Comments

@user1823
Copy link

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

@kjk
Copy link
Member

kjk commented Apr 17, 2024

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'

@kjk kjk added the mupdf label Apr 17, 2024
@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Apr 17, 2024

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 (%µ¶)

@user1823
Copy link
Author

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?

@kjk
Copy link
Member

kjk commented Apr 18, 2024

It doesn't work in latest mupdf, I opened an issue https://bugs.ghostscript.com/show_bug.cgi?id=707750

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Apr 18, 2024

@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 ?

@user1823
Copy link
Author

user1823 commented Apr 18, 2024

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.

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Apr 18, 2024

@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 !!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants