SUMMARY I have annotated a large book (1200+ pages). When I read it in and export it from xournalpp, it spews errors from the Poppler library. You can the see various errors here https://github.com/xournalpp/xournalpp/issues/3388#issuecomment-925973048 The original PDF does not cause these errors. In addition, if I put it through tools like pdfunit, the annotations disappear, which I believe is due to the file being corrupted by Okular annotations. I believe these are errors in the file, introduced by Okular, not errors in the various other (non-Okular) applications. STEPS TO REPRODUCE 1. Open file in other tools 2. Observe corruption-related errors on stdio and incorrect behavior OBSERVED RESULT Errors on STDIO, 4 KB result files. EXPECTED RESULT Annotations not corrupting the PDF. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 20.04 ADDITIONAL INFORMATION
Okular doesn't really modify the files, poppler does, so if it's a bug, it's a bug in poppler. Open one in https://gitlab.freedesktop.org/poppler/poppler/ Also you'll need to attach an example, pre and post-modification.
Oh that's good news - both Okular and xournalpp use Poppler... which you'd think would mean it was compatible with itself! I'll go file a bug. Problem is, my test file is a copyrighted book. What's the usual way to deal with that?
(In reply to gbell_spamless from comment #2) > What's the usual way to deal with that? The ideal is you find something else that you can share that exhibits the problem
I do have an example file which I could share, but the problem appears in Xournal++ for me, not in Okular (I don't use Okular to be honest). Is there already an upstream bug report where I could share the problematic file?
I created a bug report upstream: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1170