summaryrefslogtreecommitdiff
path: root/foomaticrip.c
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2012-02-10 22:08:57 +0100
committerTill Kamppeter <till.kamppeter@gmail.com>2012-02-10 22:08:57 +0100
commit999d6cf32e9bf7bad0cd91c360b62c0431afda37 (patch)
treea4eed196a18e4ebfad3581e1543b9d7307b20ef8 /foomaticrip.c
parentc0f0a7a97bb2d3ab217b9753351431509ea40840 (diff)
Imported Upstream version 4.0.11upstream/4.0.11
Diffstat (limited to 'foomaticrip.c')
-rw-r--r--foomaticrip.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/foomaticrip.c b/foomaticrip.c
index 7d7d9ae..799a259 100644
--- a/foomaticrip.c
+++ b/foomaticrip.c
@@ -1054,14 +1054,17 @@ int print_file(const char *filename, int convert)
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". */
+ we use "ps2write".
+ We give priority to Ghostscript here and use Poppler if
+ Ghostscript is not available. */
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",
+ "-dBATCH -dNOPAUSE -dPARANOIDSAFER -dNOINTERPOLATE %s 2>/dev/null || "
+ "%spdftops -level2 -origpagesizes %s - 2>/dev/null",
+ filename,
(spooler == SPOOLER_CUPS ?
"PATH=${PATH#*/cups/filter:} " : ""),
- filename, filename);
+ filename);
renderer_pid = start_system_process("pdf-to-ps", pdf2ps_cmd, &in, &out);