writing a new cups driver

Helge Blischke h.blischke at srz.de
Mon Mar 14 04:40:13 PST 2005


greg strockbine wrote:
> 
> I'm writing a cups driver for a non-postscript
> printer.  The printer has it's own command set,
> but it's not PCL or ESC/P.
> 
> I have this line in my ppd file:
> 
> Filter application/vnd.cups-raster 0 rastertomydriver
> 
> I only seem to be able to send gifs, jpgs, etc using
> this filter.  I'm kind of confused about how I would
> send a document that would have text and graphics.
> I guess I was thinking such a document would be converted
> to raster data and my driver would only have to deal with
> that.
> 
> I suppose I'm still confused about the path a text+graphics
> file takes through cups.  I have the cups book and have also
> gone through the on line docs, but I can't seem to get a
> handle on this.
> 
> any suggestions?
> thanks,
> greg strockbine

You need the line
application/vnd.cups-postscript        application/vnd.cups-raster    
100     pstoraster
in your mime.convs. But note that the pstoraster filter is now part of
the ESP-Ghostscript
distibution which you need to get separately (it's no longer pat of the
CUPS distro).

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups-devel mailing list