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 793986 - Missing tooltips for annotations (with annotation contents)
Missing tooltips for annotations (with annotation contents)
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: pdf annotations
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-03-02 10:40 UTC by 9u0h923nhu
Modified: 2018-05-22 17:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot that shows the tooltip for a label on a supported annotation (1.94 MB, image/png)
2018-03-02 13:18 UTC, Germán Poo-Caamaño
Details
A .pdf file with tooltip I created (4.60 KB, application/pdf)
2018-03-02 13:36 UTC, 9u0h923nhu
Details

Description 9u0h923nhu 2018-03-02 10:40:42 UTC
See the 'package documentation' PDF file on this CTAN website: https://www.ctan.org/pkg/pdfcomment

There is a nice \pdftooltip feature. Upon hovering mouse cursor over pdftooltip'ed objects, a tooltip with user-defined text should appear. The 'package documentation' PDF file itself is an example.

This feature works perfectly with Microsoft Edge (Windows), SumatraPDF (Windows, Wine on Linux and macOS), Adobe Acrobat Reader (Windows and macOS), and Foxit reader (Windows, Linux, and macOS). It would be nice to have this feature on Evince as well!
Comment 1 Germán Poo-Caamaño 2018-03-02 11:28:36 UTC
Poppler (the library used by Evince to render PDF) should provide it.

Please, file a bug in Poppler's bugzilla to request such feature (if it is not there).

If Poppler does not provide an API to access the tooltip, then there is nothing that Evince can do.
Comment 2 José Aliste 2018-03-02 12:37:15 UTC
Just providing a link to the documentation of a package in CTAN is not helpful. 
Please provide test cases, and explain what the expected behavior is and what happens currently in evince.
Comment 3 9u0h923nhu 2018-03-02 12:52:50 UTC
(In reply to José Aliste from comment #2)
> Just providing a link to the documentation of a package in CTAN is not
> helpful. 
> Please provide test cases, and explain what the expected behavior is and
> what happens currently in evince.

I'm not sure my previous comment was saved so I'm posting this again. 

The documentation file itself is an example PDF. You absolutely don't have to read through the documentation. See page 13 (Section 3.2) of the documentation file. When a user hovers his mouse cursor over, e.g., the red-colored "words", a tooltip should appear. You can see for yourself by opening the file with SumatraPDF on Windows (or Wine). However, Evince, like many other Linux-based PDF readers and Preview.app in macOS, does nothing currently.
Comment 4 9u0h923nhu 2018-03-02 13:01:28 UTC
As suggested, I filed a bug in Poppler's bugziller also. (https://bugs.freedesktop.org/show_bug.cgi?id=105326)
Comment 5 Germán Poo-Caamaño 2018-03-02 13:12:58 UTC
I missed the part of the document, as well as José.

That said, I took a look at example.pdf [1] and it is about annotations
support.

The labels in the annotations are shown as tooltips in other readers.  If you
run Evince from a terminal you would see plenty of output like:

"
** (evince:6563): WARNING **: Unimplemented annotation: POPPLER_ANNOT_FREE_TEXT.  It is a known issue and it might be implemented in the future.
[...]
"

Ok, I think the bug in Poppler is not such. Sorry for the noise.
I misunderstood the report.

This bug is duplicated of several ones that are already reported for each
type of annotations.


[1] http://mirrors.ctan.org/macros/latex/contrib/pdfcomment/doc/example.pdf
Comment 6 Germán Poo-Caamaño 2018-03-02 13:18:46 UTC
Created attachment 369181 [details]
Screenshot that shows the tooltip for a label on a supported annotation

As you can see in the screenshot, for the annotations supported in Evince, the tooltip is shown. The ones where Evince shows nothing it is because those are not supported yet in Evince, many of them are not even implemented in Poppler-glib (the part of Poppler used by Evince), although supports most (if not all) annotations already.
Comment 7 9u0h923nhu 2018-03-02 13:36:52 UTC
Created attachment 369183 [details]
A .pdf file with tooltip I created
Comment 8 9u0h923nhu 2018-03-02 13:41:16 UTC
It seems to me that, there are many different types of annotations in the example.pdf from CTAN, and the one specific type of annotation, 'pdftooltip' as the CTAN package dev call it, has not been known to be incompatible with evince. 

The attached file is a simple PDF file with ONLY 'pdftooltip' annotation without other fuss. When opening the file with evince in terminal, there is no warning about annotation.
Comment 9 Germán Poo-Caamaño 2018-03-02 13:42:59 UTC
I rephrased the subject. The issue seems to be as follows:

Annotations may have a content text, which can be shown as a tooltip.
Evince does show the tooltip for Text annotations, but not for Highlight
or Strike Out annotations.
Comment 10 José Aliste 2018-03-02 15:30:37 UTC
(In reply to 9u0h923nhu from comment #7)
> Created attachment 369183 [details]
> A .pdf file with tooltip I created

Thanks! that is much more helpful as it is easy to reproduce and see the inside of the PDF!
Comment 11 GNOME Infrastructure Team 2018-05-22 17:32:56 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/882.