From 42b326d629b18a582e2115bbf40d5488c73c8541 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Wed, 13 May 2026 14:18:16 -0400 Subject: pdf: Create highlight annotations for existing annotations in document Implementing the type and a method to create highlight annotations. Backported from https://gitlab.gnome.org/GNOME/evince/-/commit/53c349e8 --- backend/pdf/ev-poppler.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index ef3b06a8..af8a287e 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -2686,6 +2686,9 @@ ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot, g_object_unref (poppler_attachment); } break; + case POPPLER_ANNOT_HIGHLIGHT: + ev_annot = ev_annotation_text_markup_highlight_new (page); + break; case POPPLER_ANNOT_LINK: case POPPLER_ANNOT_WIDGET: /* Ignore link and widgets annots since they are already handled */ -- cgit v1.2.1