From 67a8e09e745eac3768e222e41a4b01d2c2a1814a Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 14 Jun 2023 09:55:33 +0200 Subject: [PATCH] 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 --- CHANGES.md | 1 + cups/ppd-cache.c | 10 ++++++++++ 2 files changed, 11 insertions(+) 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... */ -- 2.47.2