From discussion "Lost all annotations"
Discussed in https://github.com/sumatrapdfreader/sumatrapdf/discussions/3935
Originally posted by ledg555 December 5, 2023 Hi. I just wanted to ask: is there some shortcut to restore an original document or to suddenly delete all annotations? I was trying to save an annotation to the current document with the usual Ctrl+Shift+s but instead of s accidentally hit other key (I think w or e) and all my hundreds of annotations in a 700 pages book suddenly were gone.
Whilst testing current pre-release I notice an oddity in the way SumatraPDF is writing trailers which would potentially produce lost annotations here is same sample with SumatraPDF and MuPDF annotations not perfectly identical but close enough.
Whilst practically all readers will gloss over the transgression of incorrect start ref in simple case it will cause downstream losses as more and more startxref's are added colours_decoded-mupdf (incremental).pdf
Later edit I am struggling to find the SumatraPDF example as it seems to have been corrected !! which for me is a second mystery since with this copy they all simply ignore the last section. here is a reproduction of that one with the annotation unseen, but struggling to find out how that happened colours_same eof.pdf
There is really something happening on Sumatra v3.5.2 that makes it lose all annotations FREQUENTLY. It happened to me and makes me very insecure to keep using the program. My annotations are essential to the work I'm doing. I can't risk losing them.
Related to #3911
Does it still happen in pre-release? (https://www.sumatrapdfreader.org/prerelease)
We fixed at least one bug related to saving annotations: https://github.com/sumatrapdfreader/sumatrapdf/issues/3981
@kjk Hi. It is really good to know that the bug might already have been fixed. I'm testing the pre-release and I will comment later if it happens again.
Still happening. Tried version 3.5.2 and version 3.5. Both have the same problem in Windows 10. I also tried saving with ctrl-shift-s and get same problem. And it also happens when I save in a different file.
@cascodoATX it cannot be fixed in 3.5.# it was fixed as per above in 3.6. pre-release https://www.sumatrapdfreader.org/prerelease
Closing as it was fixed in pre-release
@kjk Lost some annotations on v3.6.16022 64-bit after using CTRL+W to close another PDF file.
@A-Infor we are now at 3.6.16336/7 I dont have an old 16022 to test but both a version before and after approx + - .### 70 tested in 32 bit closing one tab will even if double bounce the ctrl+W, trigger a "do you wish to save annotations"
you would need to find a repeatable file/sequence in current pre-release for there to be any "fix"
@A-Infor I need step-by-step instructions on how to reproduce the issue. This just isn't enough information.
@GitHubRulesOK I didn't mention double bouncing the CTRL+W. I closed one tab and the previous one was shown. The previous one then lost at least the not-yet-saved annotations.