diff options
Diffstat (limited to 'debian/patches/use-ghostscript-for-pdf-to-ps.patch')
-rw-r--r-- | debian/patches/use-ghostscript-for-pdf-to-ps.patch | 30 |
1 files changed, 30 insertions, 0 deletions
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); + |