[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: please help - CUPS filter?



On Wed, 2004-01-21 at 20:20, lloyd wrote:
> i have a CUPS filter setup that works locally but not when i send a 
> print job from a windows machine.
> 
> i've created a filter named "compressedtext" as follows:
> 
> - created the filter and put it in /usr/lib/cups/filters
> 
> - put this in test.ppd:
> 
>    *cupsFilter: "text/plain 0 compressedtext"
> 
> the filter works as expected when i send a print job like this:
> 
>     lp -d test testing.txt
> 
> 
> ...but it doesn't work if i then do this on a Windows 2000 machine:
> 
> - create an LPR printer port pointed at the test queue
> 
> - set up a generic text printer on that queue
> 
> - print a text document to that printer
> 
> according to error_log, in the first case, the document is correctly 
> identified as "text/plain".  however, in the second case it's identified 
> as "application/vnd.cups-raw".  now, just trying to get this to work, i 
> put this in test.ppd:
> 
>    *cupsFilter: "application/vnd.cups-raw 0 compressedtext"
> 
> but it still didn't work.  it doesn't seem to call my filter at all.

Hmm, I do something fairly similar, and it works just fine. My documents
are coming to the lpd server from an AIX system though.

You might want to check the command line that is run by inetd and use
the same ones for testing from the command line.
-- 
Mark Roach



Reply to: