]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters, mupdftoraster, mupdftopwg: Renamed filter function
authorTill Kamppeter <till.kamppeter@gmail.com>
Mon, 4 Apr 2022 13:39:43 +0000 (15:39 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Mon, 4 Apr 2022 13:39:43 +0000 (15:39 +0200)
commit03e2c8b571af4f3bc2775e11a2881d5c3cadc240
treef295b24ce1427af1331ba7db96b6ffcdb632fc8d
parentf730a1f8c23b11e89e665aba5f77e8dd979db795
libcupsfilters, mupdftoraster, mupdftopwg: Renamed filter function

Renamed the filter function mupdftoraster() and the corresponding CUPS
filter to mupdftopwg(). This is because the "mutool" utility of MuPDF
only supports PWG Raster output, no CUPS Raster and no Apple Raster.

It also does not make the impression that this will change anytime
soon, as this is already this way for many years and there is also no
feature request posted asking for adding the other formats.

This way it is easily communicated that the filter function has to be
followed by the pwgtoraster() filter function to get CUPS Raster.

Note that the "outformat" parameter (the CUPS filter feeds in the
value of the FINAL_CONTENT_TYPE environment variable here) does not
change the actual output format (PWG Raster) of mupdftopwg(), it is
only to tell the final output format of the print job, so that
mupdftopwg() can grab color space, color depth, and resolution info
for this final format from the PPD file (or from the printer IPP
attributes) and call "mutool" according to this format.
Makefile.am
cupsfilters/filter.h
cupsfilters/mupdftopwg.c [moved from cupsfilters/mupdftoraster.c with 88% similarity]
cupsfilters/pdftopdf/pdftopdf.cc
filter/mupdftopwg.c [moved from filter/mupdftoraster.c with 88% similarity]
mime/cupsfilters-mupdf.convs