How to insert a custom filter to the filter chain? #845
Replies: 3 comments 13 replies
-
If you develop a new application, please don't use any PPDs or filters - write a printer application which will serve as printer driver. PPDs and additional filters are deprecated for long time and CUPS is on its way to remove their support in CUPS 3.0. But before you write a driver, you can check if IPP 2.0 does not provide something similar and your printer does not support it. About error - the backend accepts a specific file type, which your filter does not create , and which comes from the original printer. Your filter would have to create such type, or you have to apply your changes before sending the file to the original filter. Ad the second question - it depends on PPD and printer. Your filter has to create a file in the document format accepted by backend and printer. |
Beta Was this translation helpful? Give feedback.
-
Ad writing printer applications - https://openprinting.github.io/documentation/02-designing-printer-drivers/ |
Beta Was this translation helpful? Give feedback.
-
@zdohnal
and
As far as I know for CUPS up to 2.x |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm developing a macOS application to trigger any printing action and modify the document content before sending to the printer, such as adding text to printing documents.
What I've tried so far is creating a simple filter and inserting it into the filter chain, then checking if it works. However, once I changed it to my own custom filter, the printer is not working.
Here is custom filter watermark:
In PPD file (Canon_LBP3300.ppd) i changed:
*$cupsFilter: "application/pdf 0 /Library/Printers/Canon/CUPSCAPT2/Bins/capdftopdl"
to*cupsFilter: "application/pdf 0 watermark"
In the log file:
I have a couple questions:
*cupFilter:
entries in different printers. Can my own filter apply to all printers?Regards,
Beta Was this translation helpful? Give feedback.
All reactions