]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libcupsfilters: Let universal() pass FINAL_CONTENT_TYPE to pdftopdf()
authorTill Kamppeter <till.kamppeter@gmail.com>
Wed, 17 Nov 2021 19:44:57 +0000 (20:44 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Wed, 17 Nov 2021 19:44:57 +0000 (20:44 +0100)
pdftopdf() uses the FINAL_CONTENT_TYPE environment variable to
determine whether to log the printed pages and for other things, so
the universal() filter function should pass it through.

cupsfilters/universal.c

index f09d058ce4c4134918df39cd89bf60d4c51c6352..9ff217b5dba363d4f9feb27a267779575e391eab 100644 (file)
@@ -219,7 +219,7 @@ universal(int inputfd,         /* I - File descriptor input stream */
     if (strcmp(output_type, "pdf")) {
       filter = malloc(sizeof(filter_filter_in_chain_t));
       filter->function = pdftopdf;
-      filter->parameters = NULL;
+      filter->parameters = strdup(output);
       filter->name = "pdftopdf";
       cupsArrayAdd(filter_chain, filter);
       if (log) log(ld, FILTER_LOGLEVEL_DEBUG,