libcupsfilters: In universal() use Ghostscript for PDF-to-Raster
As Ghostscript is more optimized for print output we use now the
Ghostscript-based ghostscript() filter function to convert PDF into
PWG/CUPS Raster and not the Poppler-based pdftoraster() any more.
Later on we will add conditional compiling to use Poppler in a
Ghostscript-less build of cups-filters.
@@ -113,7 +113,7 @@ universal(int inputfd, /* I - File descriptor input stream */
filter = malloc(sizeof(filter_filter_in_chain_t));
filter->function = ghostscript;
filter->parameters = outformat;
- filter->name = "gstopdf";
+ filter->name = "ghostscript";
cupsArrayAdd(filter_chain, filter);
if (log) log(ld, FILTER_LOGLEVEL_DEBUG,
"universal: Adding %s to chain", filter->name);
@@ -178,7 +178,7 @@ universal(int inputfd, /* I - File descriptor input stream */
filter = malloc(sizeof(filter_filter_in_chain_t));
filter->function = ghostscript;
filter->parameters = outformat;
- filter->name = "pstoraster";
+ filter->name = "ghostscript";
cupsArrayAdd(filter_chain, filter);
if (log) log(ld, FILTER_LOGLEVEL_DEBUG,
"universal: Adding %s to chain", filter->name);
@@ -235,9 +235,9 @@ universal(int inputfd, /* I - File descriptor input stream */
outformat = malloc(sizeof(filter_out_format_t));
*outformat = OUTPUT_FORMAT_CUPS_RASTER;
filter = malloc(sizeof(filter_filter_in_chain_t));
- filter->function = pdftoraster;
+ filter->function = ghostscript;
filter->parameters = outformat;
- filter->name = "pdftoraster";
+ filter->name = "ghostscript";
cupsArrayAdd(filter_chain, filter);
if (log) log(ld, FILTER_LOGLEVEL_DEBUG,
"universal: Adding %s to chain",
