[Poppler-bugs] [Bug 22026] patch to fix ps generation from pdftops with -level1sep

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 3 12:27:55 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=22026





--- Comment #3 from Albert Astals Cid <tsdgeos at terra.es>  2009-06-03 12:27:55 PST ---
the color[4] -> color[3] thing is already fixed in master.

For the other issue i think i like better this

diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index d24e77e..323d08e 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;

What do you think?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list