Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backend/pdf/ev-poppler.cc5
-rw-r--r--configure.ac1
2 files changed, 4 insertions, 2 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 38ab1d5..a9a0a85 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1236,10 +1236,11 @@ GdkPixbuf *
pdf_document_images_get_image (EvDocumentImages *document_images,
EvImage *image)
{
+ GdkPixbuf *retval = NULL;
+#ifdef HAVE_POPPLER_PAGE_GET_IMAGE
PdfDocument *pdf_document;
PopplerPage *poppler_page;
cairo_surface_t *surface;
- GdkPixbuf *retval = NULL;
pdf_document = PDF_DOCUMENT (document_images);
poppler_page = poppler_document_get_page (pdf_document->document,
@@ -1252,7 +1253,7 @@ pdf_document_images_get_image (EvDocumentImages *document_images,
}
g_object_unref (poppler_page);
-
+#endif
return retval;
}
diff --git a/configure.ac b/configure.ac
index 880c57c..099c3a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -367,6 +367,7 @@ if test "x$enable_pdf" = "xyes"; then
evince_save_LIBS=$LIBS
LIBS="$LIBS $POPPLER_LIBS"
AC_CHECK_FUNCS(poppler_page_render)
+ AC_CHECK_FUNCS(poppler_page_get_image)
LIBS=$evince_save_LIBS
PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)