change in the future when we add Apple Raster output support to
this filter. */
-#ifdef HAVE_CUPS_1_7
if (parameters) {
outformat = *(filter_out_format_t *)parameters;
if (outformat != OUTPUT_FORMAT_CUPS_RASTER &&
if (outformat == OUTPUT_FORMAT_PWG_RASTER)
doc->pwgraster = 1;
-#endif /* HAVE_CUPS_1_7 */
num_options = joinJobOptionsAndAttrs(data, num_options, &options);
free(profile);
}
-#ifdef HAVE_CUPS_1_7
if ((attr = ppdFindAttr(doc->ppd,"PWGRaster",0)) != 0 &&
(!strcasecmp(attr->value, "true")
|| !strcasecmp(attr->value, "on") ||
!strcasecmp(attr->value, "yes")))
doc->pwgraster = 1;
-#endif /* HAVE_CUPS_1_7 */
} else {
-#ifdef HAVE_CUPS_1_7
doc->pwgraster = 1;
t = cupsGetOption("media-class", num_options, options);
if (t == NULL)
doc->colour_profile.colorProfile = cmsOpenProfileFromFile(profile,"r");
free(profile);
}
-
-#else
- if (log) log(ld, FILTER_LOGLEVEL_ERROR,
- "pdftoraster: No PPD file specified.");
- return (1);
-#endif /* HAVE_CUPS_1_7 */
}
if ((val = cupsGetOption("print-color-mode", num_options, options)) != NULL
&& !strncasecmp(val, "bi-level", 8))
if (log) log(ld, FILTER_LOGLEVEL_DEBUG,
"pdftoraster: Page size requested: %s", doc->header.cupsPageSizeName);
+ if (num_options)
+ cupsFreeOptions(num_options, options);
+
return (0);
}