From 63683a8c098e9552a52c511e6a77a905f1b5b9f7 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sun, 29 Dec 2013 15:16:37 +1030 Subject: [PATCH 7/7] cairo: clip to crop box when printing the cairo surface may larger than the crop box fixes https://bugzilla.gnome.org/show_bug.cgi?id=649886 --- poppler/CairoOutputDev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/poppler/CairoOutputDev.h b/poppler/CairoOutputDev.h index c9ae33d..50fdf7b 100644 --- a/poppler/CairoOutputDev.h +++ b/poppler/CairoOutputDev.h @@ -121,6 +121,10 @@ public: // text in Type 3 fonts will be drawn with drawChar/drawString. virtual GBool interpretType3Chars() { return gFalse; } + // Does this device need to clip pages to the crop box even when the + // box is the crop box? + virtual GBool needClipToCropBox() { return gTrue; } + //----- initialization and control // Start a page. -- 1.8.3.2