2007-02-15 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_do_page):
Restore cairo context before rendering every page when printing a PDF
document into a PDF file.
svn path=/trunk/; revision=2327
+2007-02-15 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_do_page):
+
+ Restore cairo context before rendering every page when printing a PDF
+ document into a PDF file.
+
2007-02-13 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ps/gstypes.h:
poppler_page_render_to_ps (poppler_page, ctx->ps_file);
break;
case EV_FILE_FORMAT_PDF:
+#ifdef HAVE_CAIRO_PDF
+ cairo_save (ctx->pdf_cairo);
+#endif
#ifdef HAVE_POPPLER_PAGE_RENDER
poppler_page_render (poppler_page, ctx->pdf_cairo);
#endif
#ifdef HAVE_CAIRO_PDF
cairo_show_page (ctx->pdf_cairo);
+ cairo_restore (ctx->pdf_cairo);
#endif
break;
default: