]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/ev-poppler.cc
Implement fitr links
[evince.git] / pdf / ev-poppler.cc
index 9b1fc47d2fedbaeb8f18c7f81f374c47c696374e..30b5a72e0964c6adacad8fd7532d7777174a0b79 100644 (file)
@@ -729,10 +729,17 @@ ev_link_from_dest (PopplerAction *action)
                                              action->goto_dest.dest->top);
                break;
        case POPPLER_DEST_FITV:
-               unimplemented_dest = "POPPLER_DEST_FITV";
+               link = ev_link_new_page_fitv (action->any.title,
+                                             action->goto_dest.dest->page_num - 1,
+                                             action->goto_dest.dest->left);
                break;
        case POPPLER_DEST_FITR:
-               unimplemented_dest = "POPPLER_DEST_FITR";
+               link = ev_link_new_page_fitr (action->any.title,
+                                             action->goto_dest.dest->page_num - 1,
+                                             action->goto_dest.dest->left,
+                                             action->goto_dest.dest->bottom,
+                                             action->goto_dest.dest->right,
+                                             action->goto_dest.dest->top);
                break;
        case POPPLER_DEST_FITB:
                unimplemented_dest = "POPPLER_DEST_FITB";