[poppler] poppler/CairoOutputDev.cc poppler/CairoOutputDev.h
Jeff Muizelaar
jrmuizel at kemper.freedesktop.org
Sat Oct 13 16:39:14 PDT 2007
poppler/CairoOutputDev.cc | 9 +++++++++
poppler/CairoOutputDev.h | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
New commits:
commit 03e1da99f7393fb1103643311b0b5af7b875e09c
Author: Jeff Muizelaar <jeff at infidigm.net>
Date: Sat Oct 13 19:38:15 2007 -0400
Add an implementation of CairoOutputDev::startPage()
The implementation initializes fill_pattern and stroke_pattern
to black matching SplashOutputDev. This fixes #12504.
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index d2a57b6..2d4f663 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -128,6 +128,15 @@ void CairoOutputDev::startDoc(XRef *xrefA) {
fontEngine = new CairoFontEngine(ft_lib);
}
+void CairoOutputDev::startPage(int pageNum, GfxState *state) {
+ /* set up some per page defaults */
+ cairo_pattern_destroy(fill_pattern);
+ fill_pattern = cairo_pattern_create_rgb(0., 0., 0.);
+
+ cairo_pattern_destroy(stroke_pattern);
+ stroke_pattern = cairo_pattern_create_rgb(0., 0., 0.);
+}
+
void CairoOutputDev::drawLink(Link *link, Catalog *catalog) {
}
diff --git a/poppler/CairoOutputDev.h b/poppler/CairoOutputDev.h
index 07fe186..8cfe32e 100644
--- a/poppler/CairoOutputDev.h
+++ b/poppler/CairoOutputDev.h
@@ -82,7 +82,7 @@ public:
//----- initialization and control
// Start a page.
- virtual void startPage(int pageNum, GfxState *state) { }
+ virtual void startPage(int pageNum, GfxState *state);
// End a page.
virtual void endPage() { }
More information about the poppler
mailing list