]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libppd: In ppdFilterLoadPPD() correct check for final output type
authorTill Kamppeter <till.kamppeter@gmail.com>
Sat, 27 Aug 2022 20:53:45 +0000 (22:53 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sat, 27 Aug 2022 20:53:45 +0000 (22:53 +0200)
commit0d3db9bca01d4b19253a7196fc2cb41f66d17f88
treedba7f1d64c6e4f6ce66003cc47e6350f31af13d9
parenteedcb2f71c20739bdd1de5a9039ae7e1b9406e4c
libppd: In ppdFilterLoadPPD() correct check for final output type

To determine whether the PDF filter (usually cfFilterPDFToPDF()) has
to do the page logging for CUPS ("PAGE: XX YY" log messages) or the
driver filter, we check the final output type (FINAL_CONTENT_TYPE
environment cariable from CUPS) to see whether a driver filter is
involved which should log the pages by itself.

The code to compare the final output type with the "*cupsFilter(2):
..." lines in the PPD file was broken, which is fixed with this
commit.
ppd/ppd-filter.c