From: Zdenek Dohnal Date: Wed, 14 Jun 2023 07:55:33 +0000 (+0200) Subject: cups/ppd-cache.c: Put cupsSingleFile into generated PPD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F729%2Fhead;p=thirdparty%2Fcups.git cups/ppd-cache.c: Put cupsSingleFile into generated PPD Some printers are not able to print multiple files in one job via IPP Everywhere. Adding the PPD keyword enables the feature on all printers in exchange for performance degradation (there is a 1-2s pause between printed files). Fixes #643 --- diff --git a/CHANGES.md b/CHANGES.md index 314785519c..b1d8467bed 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes in CUPS v2.5b1 (TBA) - Fix segfault in `cupsGetNamedDest()` when trying to get default printer, but the default printer is not set (Issue #719) +- Fix printing multiple files on specific printers (Issue #643) Changes in CUPS v2.4.3 (2023-06-01) diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 3c59d7496c..40881cd395 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -5055,6 +5055,16 @@ _ppdCreateFromIPP2( } } + /* + * Add cupsSingleFile to support multiple files printing on printers + * which don't support multiple files in its firmware... + * + * Adding the keyword degrades printing performance (there is 1-2 seconds + * pause between files). + */ + + cupsFilePuts(fp, "*cupsSingleFile: true\n"); + /* * Close up and return... */