summaryrefslogtreecommitdiff
path: root/debian/patches/use-ghostscript-for-pdf-to-ps.patch
blob: e8f0fb72623759909c1c52b0371035a4ef4a8605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);