GNOME Bugzilla – Bug 626982
Unimplemented annotation: POPPLER_ANNOT_CARET
Last modified: 2018-05-22 13:59:36 UTC
I got <http://tug.ctan.org/tex-archive/macros/latex/contrib/microtype/microtype.pdf>. Looking at it with evince-2.31.6-1.fc15.x86_64 (Fedora rawhide) I get lots of: ** (evince:14411): WARNING **: Unimplemented annotation: POPPLER_ANNOT_CARET, please post a bug report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase.
Still the same with evince-2.31.90-1.fc15.x86_64 (Fedora rawhide)
Can't attach the file as it is too big. The above URL will have to do :-(
Thanks for using evince and submitting the bug. Most annotation types are not yet implemented in evince. The URL is just fine.
Created attachment 170402 [details] Acroread toggles Layers, Evince crashes Actually, for me Evince crashes with segmentation fault on page 3 of that file. On that page there is a set of layers that is toggled with a javascript and two "buttons". Navigate there with Evince and it segfaults.
It's not javascript, they are just setOCGState actions. Both, the crash and the actions are fixed in git master now, using poppler from git master too.
Created attachment 266934 [details] PDF test case. Page 36 with Caret annotations The page 36 of the document linked in #c1 is the one with Caret annotations. Somehow, those are not rendered with Poppler (this particular document, I have another that is rendered correctly). Anyway, here it is the test case.
Created attachment 266936 [details] Screenshot showing Acroread rendering the page The screenshot show how Acroread renders the Caret annotations of the document previously attached (page-36). When hovering the annotation, it shows the 'content' associated with that specific annotation.
Germán, could you post the example where caret annotations are rendered correctly?
Quick note: The Caret annotation is a text markup annotation, whose attribute Sy (Symbol, I think) is None by default (according to the specification) and it is optional. My guess is: poppler doesn't show anything if that attribute is not set. However Acroread shows a small caret character. The file I was sent has a small icon, which poppler shows. I think it is because the attribute Sy was set to that. I will check it once I get to my computer. My gut tells me that adding support for caret (the basic part) should be straightforward :-)
Created attachment 267086 [details] PDF test case with caret annotations rendered in Evince Here a PDF which is rendered correctly in Evince.
So this bug is still valid as we don't show the contents of a caret annotation in Evince (And thus the unimplemented Annotation Error). The rendering difference is because poppler DOES NOT draw Caret Annotations that don't have an /AP dictionary, that is, an appearance stream. This is a different bug in poppler.
(In reply to comment #11) > So this bug is still valid as we don't show the contents of a caret annotation > in Evince (And thus the unimplemented Annotation Error). We could with the current poppler API, it is just a text markup annotation. A quick ugly workaround is to add them in the list of annotations (sidebar) and expand to see the content. > The rendering difference is because poppler DOES NOT draw Caret Annotations > that don't have an /AP dictionary, that is, an appearance stream. This is a > different bug in poppler. good catch, thanks José.
*** Bug 753006 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/171.