Skip to content

Commit

Permalink
cups/ppd-cache.c: Put cupsSingleFile into generated PPD
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zdohnal committed Jun 14, 2023
1 parent 6a76eb8 commit 67a8e09
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions cups/ppd-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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...
*/
Expand Down

0 comments on commit 67a8e09

Please sign in to comment.