[poppler] poppler/PSOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Jun 3 13:38:46 PDT 2009
poppler/PSOutputDev.cc | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 1beec21ed3a016998fee3849d460166895db9047
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Jun 3 22:37:43 2009 +0200
Give an error when using level1sep without having CMYK support
Fixes bug #22026
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index d24e77e..7f60292 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -2951,6 +2951,10 @@ GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/,
paperColor[0] = paperColor[1] = paperColor[2] = paperColor[3] = 0;
splashOut = new SplashOutputDev(splashModeCMYK8, 1, gFalse,
paperColor, gTrue, gFalse);
+#else
+ } else if (level == psLevel1Sep) {
+ error(-1, "pdftops was built without CMYK support, level1sep needs it to work in this file");
+ return gFalse;
#endif
} else {
paperColor[0] = paperColor[1] = paperColor[2] = 0xff;
More information about the poppler
mailing list