Re: [SLUG] CUPS / filter question

From: Daniel Jarboe (daniel.jarboe@gmail.com)
Date: Wed Aug 02 2006 - 14:58:16 EDT


Hrm, I haven't created PPDs just for a filter, so YMMV on this, but I don't
see any reason why you couldn't have your filter just cat the input to
stdout, followed by your escape sequence. Raw is by definition unfiltered
(null filter - in mime.convs), so you wouldn't be raw anymore, but your
filter would in effect cat the input without modifications, followed by your
control character. So your idea should work.

As far as an easier way than the PPD cupsFilter route goes, what
protocol/backend do you use to send data to your printer? Depending on what
you are relying on cups to do, a solution that would not rely on a PPD of
your creation to specify a filter of your creation, is to create a backend
instead of a filter. Cups backends are almost identical to filters, same
arguments, just a different stage in the process. You would print to your
backend raw... and the main difference is your backend would be responsible
for sending the input data (either stdin or as a file, depending on how the
print was submitted) to the printer. So if all you need is a cat to a
locally attached lp0 or similar, then the backend way may be easier for you
(though likely less reliable) than the filter and letting cups backends do
the hairier printer communication.

~ Daniel

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:33:33 EDT