]> www.fi.muni.cz Git - evince.git/blobdiff - backend/pdf/ev-poppler.cc
[pdf] Catch rendition and ocg_state actions
[evince.git] / backend / pdf / ev-poppler.cc
index ac1fce8627047d857bda7b000d095ea616c25063..6d660b687051aca125cd6f24310685c78cac88bd 100644 (file)
@@ -1163,6 +1163,14 @@ ev_link_from_action (PdfDocument   *pdf_document,
                case POPPLER_ACTION_MOVIE:
                        unimplemented_action = "POPPLER_ACTION_MOVIE";
                        break;
+#if POPPLER_CHECK_VERSION (0, 13, 2)
+               case POPPLER_ACTION_RENDITION:
+                       unimplemented_action = "POPPLER_ACTION_RENDITION";
+                       break;
+               case POPPLER_ACTION_OCG_STATE:
+                       unimplemented_action = "POPPLER_ACTION_OCG_STATE";
+                       break;
+#endif
                case POPPLER_ACTION_UNKNOWN:
                        unimplemented_action = "POPPLER_ACTION_UNKNOWN";
        }
@@ -1960,7 +1968,7 @@ pdf_selection_render_selection (EvSelection      *selection,
 
 static gchar *
 pdf_selection_get_selected_text (EvSelection     *selection,
-                                EvRenderContext *rc,
+                                EvPage          *page,
                                 EvSelectionStyle style,
                                 EvRectangle     *points)
 {
@@ -1969,7 +1977,7 @@ pdf_selection_get_selected_text (EvSelection     *selection,
        double height;
        char *retval;
        
-       poppler_page = POPPLER_PAGE (rc->page->backend_page);
+       poppler_page = POPPLER_PAGE (page->backend_page);
 
        poppler_page_get_size (poppler_page, NULL, &height);
        r.x1 = points->x1;