summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-05-13 14:18:16 -0400
committerVictor Kareh <[email protected]>2026-05-19 16:21:12 -0400
commit42b326d629b18a582e2115bbf40d5488c73c8541 (patch)
tree19e8dc6ea287db929f14d8fe5e2f77c49988742e
parent8bca15ec3b24cb32210843706a625a18d2186fdd (diff)
downloadatril-42b326d629b18a582e2115bbf40d5488c73c8541.tar.bz2
atril-42b326d629b18a582e2115bbf40d5488c73c8541.tar.xz
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
-rw-r--r--backend/pdf/ev-poppler.cc3
1 files changed, 3 insertions, 0 deletions
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 */