Bug 442975 - PDF file annotated with Okular appears corrupted when looked at with other tools
Summary: PDF file annotated with Okular appears corrupted when looked at with other tools
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.9.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-26 11:34 UTC by gbell_spamless
Modified: 2021-11-04 07:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gbell_spamless 2021-09-26 11:34:36 UTC
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
Comment 1 Albert Astals Cid 2021-09-26 16:38:54 UTC
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.
Comment 2 gbell_spamless 2021-09-27 01:32:09 UTC
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?
Comment 3 Albert Astals Cid 2021-09-27 17:20:53 UTC
(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
Comment 4 michael.kogan 2021-11-03 19:30:33 UTC
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?
Comment 5 michael.kogan 2021-11-04 07:57:05 UTC
I created a bug report upstream: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1170