[evince/wip/annotation_support: 2/7] pdf: Add support for Text Markup Annotations.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/annotation_support: 2/7] pdf: Add support for Text Markup Annotations.
- Date: Wed, 27 Jun 2012 13:00:41 +0000 (UTC)
commit 008624fd847e5f4b7aff997200a2845d1bca4e6f
Author: Josà Aliste <jaliste gnome org>
Date: Wed Jun 20 17:19:53 2012 -0400
pdf: Add support for Text Markup Annotations.
Add basic handling for Highlight, Underline, Squiggly and Strike Out Annotations.
This allows to see/edit the contents and basic properties of the Annotations.
backend/pdf/ev-poppler.cc | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 6f29caa..8209a10 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -2659,6 +2659,15 @@ ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot,
const gchar *unimplemented_annot = NULL;
switch (poppler_annot_get_annot_type (poppler_annot)) {
+ case POPPLER_ANNOT_HIGHLIGHT:
+ case POPPLER_ANNOT_UNDERLINE:
+ case POPPLER_ANNOT_SQUIGGLY:
+ case POPPLER_ANNOT_STRIKE_OUT:
+ {
+
+ ev_annot = ev_annotation_text_markup_new (page);
+ }
+ break;
case POPPLER_ANNOT_TEXT: {
PopplerAnnotText *poppler_text;
EvAnnotationText *ev_annot_text;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]