From de36f9a56267ec98cacac15795131f2384843124 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Thu, 25 Aug 2011 09:31:37 +0200 Subject: foomatic-filters 4.0.9-1ubuntu2 --- debian/changelog | 7 +++++ debian/patches/series | 1 + debian/patches/use-ghostscript-for-pdf-to-ps.patch | 30 ++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 debian/patches/series create mode 100644 debian/patches/use-ghostscript-for-pdf-to-ps.patch diff --git a/debian/changelog b/debian/changelog index 2d9aede..561b210 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +foomatic-filters (4.0.9-1ubuntu2) oneiric; urgency=low + + * debian/patches/use-ghostscript-for-pdf-to-ps.patch: Use Ghostscript instead + of Poppler if the driver needs to have incoming PDF converted to PostScript. + + -- Till Kamppeter Thu, 25 Aug 2011 09:03:03 +0200 + foomatic-filters (4.0.9-1ubuntu1) oneiric; urgency=low * debian/control: Added "Recommends: colord" (LP: #788092). diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..46194e7 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +use-ghostscript-for-pdf-to-ps.patch diff --git a/debian/patches/use-ghostscript-for-pdf-to-ps.patch b/debian/patches/use-ghostscript-for-pdf-to-ps.patch new file mode 100644 index 0000000..e8f0fb7 --- /dev/null +++ b/debian/patches/use-ghostscript-for-pdf-to-ps.patch @@ -0,0 +1,30 @@ +--- a/foomaticrip.c ++++ b/foomaticrip.c +@@ -1043,25 +1043,16 @@ + filename = tmpfilename; + } + +- /* If the spooler is CUPS we remove the /usr/lib/cups/filter +- (CUPS filter directory, can be different, but ends with +- "/cups/filter") which CUPS adds to the beginning of $PATH, +- so that Poppler's/XPDF's pdftops filter is called and not +- the one of CUPS, as the one of CUPS has a different command +- line and does undesired page management operations. +- The "-dNOINTERPOLATE" makes Ghostscript rendering ++ /* The "-dNOINTERPOLATE" makes Ghostscript rendering + significantly faster. + Note that Ghostscript's "pswrite" output device turns text + into bitmaps and therefore produces huge PostScript files. + In addition, this output device is deprecated. Therefore + we use "ps2write". */ + snprintf(pdf2ps_cmd, PATH_MAX, +- "%spdftops -level2 -origpagesizes %s - 2>/dev/null || " + "gs -q -sstdout=%%stderr -sDEVICE=ps2write -sOutputFile=- " + "-dBATCH -dNOPAUSE -dPARANOIDSAFER -dNOINTERPOLATE %s 2>/dev/null", +- (spooler == SPOOLER_CUPS ? +- "PATH=${PATH#*/cups/filter:} " : ""), +- filename, filename); ++ filename); + + renderer_pid = start_system_process("pdf-to-ps", pdf2ps_cmd, &in, &out); + -- cgit v1.2.3