[evince] pdf: adding annotation squiggly.



commit 5702e401453bd0cdd6618fde8ba1ad88ba156a13
Author: Philipp Reinkemeier <philipp reinkemeier offis de>
Date:   Mon Jun 8 18:03:04 2015 +0200

    pdf: adding annotation squiggly.
    
    This adds support to the pdf backend for loading and saving
    text markup annotations of subtype Squiggly.

 backend/pdf/ev-poppler.cc |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index df662c8..91b46bd 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -2911,6 +2911,9 @@ ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot,
                case POPPLER_ANNOT_UNDERLINE:
                        ev_annot = ev_annotation_text_markup_underline_new (page);
                        break;
+               case POPPLER_ANNOT_SQUIGGLY:
+                       ev_annot = ev_annotation_text_markup_squiggly_new (page);
+                       break;
                case POPPLER_ANNOT_LINK:
                case POPPLER_ANNOT_WIDGET:
                case POPPLER_ANNOT_MOVIE:
@@ -2931,7 +2934,6 @@ ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot,
                case POPPLER_ANNOT_LINE:
                case POPPLER_ANNOT_SOUND:
                case POPPLER_ANNOT_SQUARE:
-               case POPPLER_ANNOT_SQUIGGLY:
                case POPPLER_ANNOT_STAMP: {
                        /* FIXME: These annotations are unimplemented, but they were already
                         * reported in Evince Bugzilla with test case.  We add a special
@@ -3562,6 +3564,9 @@ pdf_document_annotations_save_annotation (EvDocumentAnnotations *document_annota
                        case EV_ANNOTATION_TEXT_MARKUP_UNDERLINE:
                                new_annot = poppler_annot_text_markup_new_underline (pdf_document->document, 
&rect, quads);
                                break;
+                       case EV_ANNOTATION_TEXT_MARKUP_SQUIGGLY:
+                               new_annot = poppler_annot_text_markup_new_squiggly (pdf_document->document, 
&rect, quads);
+                               break;
                        }
 
                        g_array_unref (quads);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]