]> git.ipfire.org Git - thirdparty/cups.git/commit
Introduce print-as-raster as printer/job attribute
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 8 Jul 2025 13:26:19 +0000 (15:26 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 8 Jul 2025 13:26:19 +0000 (15:26 +0200)
commit441e5d3dca62b1112b3ed6678d6dc0d57c9f2bf5
treeaf088123ca5a5d2ab6b3962d8eee864e8d6f5179
parentce5ea6bc04f1641466458dbd588276ceca6d4891
Introduce print-as-raster as printer/job attribute

Some printers do not take kindly newer PDF versions which results in
omitting font characters in the printout. Such jobs print fine as a
raster, however retrying as raster depends on benevolence of the printer
firmware what it counts as an unrecoverable printing error.

In the past, we preferred raster over PDF in cups-filters, causing other
issues like with finishings, or solutions like generating PCLm PPD were
mentioned, however it would require a way how to define for which models
it should be used, and take of such database.

Thus introducing print-as-raster job attribute, which makes the job
to be printed as raster, and print-as-raster-default printer attributes,
which makes any job coming into the printer object to be printed as raster.

Internally it uses similar mechanism as raster retry, which was adjusted
to match both use cases now.
cups/encode.c
doc/help/man-lp.html
man/lp.1
scheduler/ipp.c
scheduler/job.c
scheduler/job.h
scheduler/printers.c