]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
cups/ppd-cache.c: Put cupsSingleFile into generated PPD 729/head
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 14 Jun 2023 07:55:33 +0000 (09:55 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 14 Jun 2023 07:55:33 +0000 (09:55 +0200)
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
cups/ppd-cache.c

index 314785519c16792272ccaf3be67816af7140f95a..b1d8467bed229da79bc3be146a827b6858283bb7 100644 (file)
@@ -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)
index 3c59d7496c35d6cf7da63a32b3561fbcd9a2dee8..40881cd39513d8585d4ab93e950adfe20f4e3c95 100644 (file)
@@ -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...
   */