cspace = icc_profile ? CUPS_CSPACE_RGB : -1;
cupsRasterPrepareHeader(&h, data, outformat,
(outformat != OUTPUT_FORMAT_APPLE_RASTER ?
- outformat : OUTPUT_FORMAT_CUPS_RASTER),
+ outformat : OUTPUT_FORMAT_CUPS_RASTER), 0,
&cspace);
/* Special Ghostscript options for raster-only PDF output */
*/
cupsRasterPrepareHeader(&header, data, outformat,
- OUTPUT_FORMAT_CUPS_RASTER, &cspace);
+ OUTPUT_FORMAT_CUPS_RASTER, 1, &cspace);
ppd = data->ppd;
doc.Orientation = header.Orientation;
doc.Duplex = header.Duplex;
From the header h only cupsWidth/cupsHeight (dimensions in pixels),
resolution, and color space are used here. */
cupsRasterPrepareHeader(&h, &curr_data, OUTPUT_FORMAT_PWG_RASTER,
- OUTPUT_FORMAT_PWG_RASTER, &cspace);
+ OUTPUT_FORMAT_PWG_RASTER, 1, &cspace);
if ((h.HWResolution[0] == 100) && (h.HWResolution[1] == 100)) {
/* No "Resolution" option */
cupsRasterPrepareHeader(&(doc->header), data, outformat,
(outformat == OUTPUT_FORMAT_PWG_RASTER ?
- outformat : OUTPUT_FORMAT_CUPS_RASTER),
+ outformat : OUTPUT_FORMAT_CUPS_RASTER), 0,
&cspace);
if (doc->ppd) {
/* I - This filter's output
format (determines
header format) */
+ int no_high_depth, /* I - Suppress use of
+ > 8 bit per color */
cups_cspace_t *cspace) /* IO - Color space we want to
use, -1 for auto, we
return color space
else
quality = "Normal";
}
- hi_depth = (!strcasecmp(quality, "High") || !strcmp(quality, "5")) ?
+ hi_depth = (!no_high_depth &&
+ (!strcasecmp(quality, "High") || !strcmp(quality, "5"))) ?
1 : 0;
if (log) {
log(ld, FILTER_LOGLEVEL_DEBUG,
options)) == NULL)
quality = ippAttrEnumValForPrinter(printer_attrs, job_attrs,
"print-quality");
- hi_depth = (!strcasecmp(quality, "high") || !strcmp(quality, "5")) ?
+ hi_depth = (!no_high_depth &&
+ (!strcasecmp(quality, "high") || !strcmp(quality, "5"))) ?
1 : 0;
if (log) {
log(ld, FILTER_LOGLEVEL_DEBUG,
final_outformat,
filter_out_format_t
header_outformat,
+ int no_hig_depth,
cups_cspace_t *cspace);
extern int cupsRasterSetColorSpace(cups_page_header2_t *h,
const char *available,