GNOME Bugzilla – Bug 689811
ability to toggle visibility of annotations
Last modified: 2018-05-22 14:54:53 UTC
While chatting about annotations in #evince. We thought it might be nice to have a simple way to toggle the visibility of all annotations on and off. This can make it easier to read the core document when there are many notes. I noticed that youtube has a way to toggle note overlays on videos. Something like that could be nice. I think we'd like to look at using this in Documents.
we need a patch for poppler that I will upload as soon as I can test it in poppler glib demo
The patch exporting the functionality to the poppler-glib frontend plus the test on poppler-glib-demo are now in https://bugs.freedesktop.org/show_bug.cgi?id=58015
Please observe that setting the POPPLER_ANNOT_FLAG_HIDDEN on an annotation will prevent it from rendering, but setting flags WILL change the modified field of the annotation.
The problem of changing the flags is that it affects the document itself, if you save a copy and open it in any other pdf viewer annots will be hidden, I'm not sure that's what we want. There's a callback in poppler to decide whether to render or not the annotations, that doesn't affect the document. It's used in render_for_printing, to print a document without the annotations, for example.
*** Bug 703287 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/321.