]> www.fi.muni.cz Git - evince.git/commitdiff
Use poppler_page_render_for_printing() instead of poppler_page_render() if
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 4 Oct 2007 10:43:05 +0000 (10:43 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Thu, 4 Oct 2007 10:43:05 +0000 (10:43 +0000)
2007-10-04  Carlos Garcia Campos  <carlosgc@gnome.org>
* configure.ac:
* backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_do_page):
Use poppler_page_render_for_printing() instead of
poppler_page_render() if available when exporting to a ps or pdf
file. Fixes bug #476627.

svn path=/trunk/; revision=2691

ChangeLog
backend/pdf/ev-poppler.cc
configure.ac

index 5d49d050c1fab7caddd006c8a730c2418610e5d0..aca41a987415aeaf571cadfdc677ee1b555795d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-10-04  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * configure.ac:
+       * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_do_page):
+
+       Use poppler_page_render_for_printing() instead of
+       poppler_page_render() if available when exporting to a ps or pdf
+       file. Fixes bug #476627.
+       
 2007-10-04  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-window.c: (ev_window_run_fullscreen):
index fa669fa170cc30dd48e072267ed1dcc227de0cd3..13be06f496b7842ca58d5f634851b99019d9d25d 100644 (file)
@@ -1692,10 +1692,15 @@ pdf_document_file_exporter_do_page (EvFileExporter  *exporter,
                         x * (rotate ? pheight : pwidth),
                         y * (rotate ? pwidth : pheight));
        cairo_scale (ctx->cr, xscale, yscale);
-       
+
+#ifdef HAVE_POPPLER_PAGE_RENDER_FOR_PRINTING
+       poppler_page_render_for_printing (poppler_page, ctx->cr);
+#else
 #ifdef HAVE_POPPLER_PAGE_RENDER
        poppler_page_render (poppler_page, ctx->cr);
 #endif
+#endif
+
        ctx->pages_printed++;
                        
        if (ctx->pages_printed % ctx->pages_per_sheet == 0) {
index ffb18bacbe068b14faf927bf6023b176b5a9dc5d..0874df2bc4d2bb924134563918d1b8ec0618b1ca 100644 (file)
@@ -247,6 +247,7 @@ if test "x$enable_pdf" = "xyes"; then
            evince_save_LIBS=$LIBS
            LIBS="$LIBS $FRONTEND_LIBS"
            AC_CHECK_FUNCS(poppler_page_render)
+           AC_CHECK_FUNCS(poppler_page_render_for_printing)
            LIBS=$evince_save_LIBS
 
            PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)