Bug 353400 - Okular's annotations (stored directly in the pdf file) won't show in a few other pdf readers
Summary: Okular's annotations (stored directly in the pdf file) won't show in a few ot...
Status: VERIFIED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2015-10-01 10:24 UTC by noric
Modified: 2017-08-17 23:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Pdf annotations test (41.41 KB, application/pdf)
2015-10-05 20:58 UTC, noric
Details

Note You need to log in before you can comment on or make changes to this bug.
Description noric 2015-10-01 10:24:34 UTC
First of all, I want to say that this happens with Okular 0.20.2 and Poppler 0.24. The annotations are saved directly in the pdf file.

I've tried a few pdf viewers and I can say that this happens with most of them. For example "Master PDF Editor" (which should be a quite advanced pdf viewer/editor) and Firefox's built-in pdf plugin.
It doesn't happen with Foxit Reader (through Wine).

Reproducible: Always

Steps to Reproduce:
1. Open a pdf in Okular.
2. Make some annotations, for example pencil, geometric shapes, text highlighter and so on.
3. Save and exit.
4. Open the edited pdf with another pdf viewer (or with Firefox's built-in pdf plugin).

Actual Results:  
None of the annotations made by Okular is displayed.

Expected Results:  
Other pdf viewers should correctly display annotations made by Okular.

The OS is Linux Mint 17.1 (based on Ubuntu 14.04), KDE 4.14.2
Comment 1 noric 2015-10-01 16:28:56 UTC
The problem is confirmed on the latest Kubuntu daily development iso, featuring Okular 0.23.1

Also, I want to add that on Windows Sumatrapdf (version 2.5.2) also doesn't work well with Okular's annotations. It can only read some of them, for example the ellittic shape, but not others, such as the pencil.
Comment 2 Albert Astals Cid 2015-10-04 22:34:36 UTC
This is a duplicate of the multiple bugs around the issue, you can save the annotations saving the file.
Comment 3 noric 2015-10-05 20:58:12 UTC
Created attachment 94860 [details]
Pdf annotations test
Comment 4 noric 2015-10-05 20:58:39 UTC
Hi Albert,
please note that I'm saving the annotations directly into the pdf file using "File" > "Save as" > "Save" > "Overwrite".
All the bugs that I've read about talk about a different thing, i.e. annotations NOT saved directly in the pdf file. I guess you are thinking to these (old and already fixed) bugs.

My situation is very different: again, I save annotations into the pdf file but SOME (not all) pdf readers don't see them.

To make this clear, I just made a test file for you. Try to open it with Okular and then with Firefox's built-in pdf viewer. You'll see the difference.
Comment 5 Albert Astals Cid 2015-10-05 21:13:29 UTC
But they do show in both Okular and Adobe Reader, so it'd seem to me is a bug in firefox's built-in pdf viewer if they don't show up there.
Comment 6 noric 2015-10-05 22:03:01 UTC
It's not only Firefox's plugin. It's also sumatraPDF (for Windows), "Master PDF Editor" for Linux, others that I tried (always on Linux), Android pdf viewer.
Firefox's plugin is quite basic and maybe buggy, but the others are supposed to work well. And they indeed show annotations of each other: only Okular's annotations have this problem. Okular probably makes something different from others with annotations.

While this is not a major bug, I think that this should remain open. Even just for reference.
Comment 7 Fabio D'Urso 2015-10-07 10:16:03 UTC
Yes, unlike other annotators, Okular (Poppler) does not attach any appearance stream to annotations.
Appearance streams are optional according to PDF specs, and PDF readers should in theory be able to render annotations without them. As you said, Firefox's plugin is basic and probably does not have proper annotation support.
Comment 8 noric 2015-10-07 10:44:00 UTC
Ciao Fabio,
thanks for your insight.
I don't know how much work it would take, but could you please consider adding appearance streams to Poppler's annotations?
It seems the problem is more widespread than just Firefox.
Comment 9 Albert Astals Cid 2015-10-07 11:12:00 UTC
Don't play with bug status, much less to set it to a wrong value