]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: Added PWG/Apple Raster support to pwgtoraster()
authorTill Kamppeter <till.kamppeter@gmail.com>
Sat, 26 Mar 2022 00:49:20 +0000 (01:49 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sat, 26 Mar 2022 00:49:20 +0000 (01:49 +0100)
commit6f3151367ce9d0870491d03f6136487e37183d31
treeb2b296190e307f4fc1f7461556fbf37c692b028c
parent2d6f8ed0a5aef8917b4975e1e0ebe2ed5658baaa
libcupsfilters: Added PWG/Apple Raster support to pwgtoraster()

The pwgtoraster() filter function is now able to also output PWG
Raster and Apple Raster, for direct conversion between PWG and Apple
Raster without inbetween CUPS Raster step. Also CUPS Raster based on
PCLm info in the PPD or in the printer IPP attributes for feeding into
rastertopclm is supported.

With this we can for example use MuPDF via the mupdftoraster() filter
function which has only PWG Raster output for all driverless printing
formats (Apple Raster, PWG Raster, PCLm) and also for classic CUPS
Raster drivers (CUPS Raster format).

Selection of the ourput format is done via the parameters, like with
the other filter functions.

We also allow the overspray/rounding correction kick in on jobs where
the output page size is not explicitly requested, as rounding errors
can always happen. Page size dimensions in the PPD can easily deviate
from the exact dimensions of the input pages.
cupsfilters/filter.h
cupsfilters/pwgtoraster.c
filter/pwgtoraster.c