Bug 465899

Summary: annotating and then saving pdf leaves corrupted file
Product: [Applications] okular Reporter: fell
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: critical CC: fell, p.r.worrall
Priority: NOR    
Version: 22.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: archive containing both files

Description fell 2023-02-17 08:35:44 UTC
SUMMARY

apologies for missing punctuation, i am struggling with the qmlkeyboard in chrome

device; samsung galaxy tab a 9.7 2015 arm64
os; postmarketos edge
de; plasma mobile nightly from sineware.ca

when saving a pdf file with annotations in okular, the file becomes corrupted.

i attached two pdfs to show the state before and after

STEPS TO REPRODUCE
1. open 'original' pdf
2. use green highlighter to highlight text
3. select file - save

OBSERVED RESULT
okular displays an error message; could not open file

EXPECTED RESULT
okular should read the file with annotations


SOFTWARE/OS VERSIONS
Windows:
Linux/KDE Plasma: plasma mobile nightly 
(available in About System)
KDE Plasma Version: 5.27.80 nightly from sineware.ca
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
i attached the original and broken file for analysis
Comment 1 fell 2023-02-17 08:37:27 UTC
Created attachment 156353 [details]
archive containing both files
Comment 2 Paul Worrall 2023-02-17 09:31:51 UTC

*** This bug has been marked as a duplicate of bug 465898 ***