After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 626982 - Unimplemented annotation: POPPLER_ANNOT_CARET
Unimplemented annotation: POPPLER_ANNOT_CARET
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: pdf annotations
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 753006 (view as bug list)
Depends on:
Blocks: 750452
 
 
Reported: 2010-08-15 19:34 UTC by vonbrand
Modified: 2018-05-22 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Acroread toggles Layers, Evince crashes (772.17 KB, image/gif)
2010-09-16 09:21 UTC, Tobias Wolf
Details
PDF test case. Page 36 with Caret annotations (163.12 KB, application/octet-stream)
2014-01-21 23:21 UTC, Germán Poo-Caamaño
Details
Screenshot showing Acroread rendering the page (128.90 KB, image/png)
2014-01-21 23:28 UTC, Germán Poo-Caamaño
Details
PDF test case with caret annotations rendered in Evince (44.19 KB, application/octet-stream)
2014-01-23 23:48 UTC, Germán Poo-Caamaño
Details

Description vonbrand 2010-08-15 19:34:28 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.
Comment 1 vonbrand 2010-08-31 13:50:12 UTC
Still the same with evince-2.31.90-1.fc15.x86_64 (Fedora rawhide)
Comment 2 vonbrand 2010-08-31 13:51:55 UTC
Can't attach the file as it is too big. The above URL will have to do :-(
Comment 3 José Aliste 2010-08-31 15:30:58 UTC
Thanks for using evince and submitting the bug. Most annotation types are not yet implemented in evince. The URL is just fine.
Comment 4 Tobias Wolf 2010-09-16 09:21:33 UTC
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.
Comment 5 Carlos Garcia Campos 2010-09-16 12:49:58 UTC
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.
Comment 6 Germán Poo-Caamaño 2014-01-21 23:21:55 UTC
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.
Comment 7 Germán Poo-Caamaño 2014-01-21 23:28:09 UTC
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.
Comment 8 José Aliste 2014-01-22 02:30:19 UTC
Germán, could you post the example where caret annotations are rendered correctly?
Comment 9 Germán Poo-Caamaño 2014-01-22 06:04:24 UTC
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 :-)
Comment 10 Germán Poo-Caamaño 2014-01-23 23:48:46 UTC
Created attachment 267086 [details]
PDF test case with caret annotations rendered in Evince

Here a PDF which is rendered correctly in Evince.
Comment 11 José Aliste 2014-01-24 16:43:00 UTC
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.
Comment 12 Germán Poo-Caamaño 2014-01-24 17:32:13 UTC
(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é.
Comment 13 Germán Poo-Caamaño 2017-09-26 12:31:09 UTC
*** Bug 753006 has been marked as a duplicate of this bug. ***
Comment 14 GNOME Infrastructure Team 2018-05-22 13:59:36 UTC
-- 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.