GNOME Bugzilla – Bug 793986
Missing tooltips for annotations (with annotation contents)
Last modified: 2018-05-22 17:32:56 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!
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.
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.
(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.
As suggested, I filed a bug in Poppler's bugziller also. (https://bugs.freedesktop.org/show_bug.cgi?id=105326)
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
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.
Created attachment 369183 [details] A .pdf file with tooltip I created
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.
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.
(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!
-- 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.