summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2011-08-25 09:31:37 +0200
committerTill Kamppeter <till.kamppeter@gmail.com>2011-08-25 09:31:37 +0200
commitde36f9a56267ec98cacac15795131f2384843124 (patch)
tree7b0eb3e5ed1bfbdbeec598a14170f0caecf934b3
parent0c28bfd11cffc615e538a444ce60b06a76d493ff (diff)
foomatic-filters 4.0.9-1ubuntu2ubuntu/4.0.9-1ubuntu2
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/use-ghostscript-for-pdf-to-ps.patch30
3 files changed, 38 insertions, 0 deletions
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 <till.kamppeter@gmail.com> 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);
+