Use case: https://bugzilla.gnome.org/show_bug.cgi?id=689900 The annotation thumbnails obstruct the underlying content, so it can be hard to read a document that has a lot of them. A way to hide or show them will be useful.
I add some hints to help you implementing this. Backend poppler renders using Page->displaySlice. We call this from _page_poppler_render func in poppler-page.cc in poppler-glib frontend. If you see this code, you will see that when printing, we disable the rendering of the annotations. So you need to adapt this method to not set printing, but to disable the printing of annotations. Hope it helps.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org'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.freedesktop.org/poppler/poppler/issues/494.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.