 +    d->cairo_output_dev->setPrinting(printing);
 +
 +    cairo_save(typed_cr);
-+    printf("calling display page slice for page %d (1 idx)\n", pp->index + 1);
 +    pdfdoc->displayPageSlice(d->cairo_output_dev, pp->index + 1,
 +                             xres, yres, int(rotate) * 90,
 +                             gFalse, gTrue, printing,

 };
 
 
@@ -195,6 +204,61 @@ image page_renderer::render_page(const page *p,
 }
 
 /**

 
 #endif
diff --git a/cpp/poppler-page-renderer.cpp b/cpp/poppler-page-renderer.cpp
index 1317192..e5f1e21 100644
--- a/cpp/poppler-page-renderer.cpp
+++ b/cpp/poppler-page-renderer.cpp
@@ -28,6 +28,9 @@
