[cups.general] Re: A line printer to print text directly
h.blischke at srz.de
Sat Apr 2 06:01:11 PST 2005
what I use in these cases (with CUPS 1.1.19) looks like this:
*% "$Id: prg.ppd,v 1.0 2000/06/12 /Bl$"
*% Sample program driver PPD file for the Common UNIX Printing
*% System (CUPS).
*% Copyright 1997-2000 by Easy Software Products.
*% Copyright 2000 by SRZ Berlin
*% These coded instructions, statements, and computer programs are the
*% property of Easy Software Products and are protected by Federal
*% copyright law. Distribution and use rights are outlined in the
*% "LICENSE.txt" which should have been included with this file. If
*% file is missing or damaged please contact Easy Software Products
*Product: "(CUPS v1.1)"
*cupsFilter: "application/vnd.cups-postscript 0 cups_fontfilter"
*ModelName: "Program Pseudo Printer"
*ShortNickName: "Program Pseudo Printer"
*NickName: "Program Pseudo Printer CUPS v1.1"
*PSVersion: "(3011.000) 0"
*% End of "$Id: prg.ppd,v 1.0 2000/06/12 /Bl$"
It is used e.g. whith a print to file backend that does not impose any
on the printed file but forces font including by the cupsFilter
If your CUPS version refuses to accetpt a PPD like this (see the ERROR
cupstestppd), you may need to add some more statements with dummy
Paul Dulaba wrote:
> You mentioned the minimal PPD again.......what is a minimal PPD? Can
> you post one that only contails a call for a filter?
> Also, is it possible to specify 2 cupsfilters in a single PPD? So one
> can be the text/plain one and one can call a script of some sort?
> On Mar 30, 2005 4:35 AM, Helge Blischke <h.blischke at srz.de> wrote:
> > Mohit Kumar wrote:
> > >
> > > Hi All,
> > >
> > > I was analysing cups for a past few days to figure out its applicability with my product, but there is one question to which I was not able to find the answer and hence in vain I am posting this question here in hope of getting some replies.
> > >
> > > I have understood the complete filtering architecture of CUPS and really appreciate it. But if the scenario is like we need to print to a line printer which understands text as it is, then would CUPS still do all the filter conversions or is there some API in CUPS library which would help me bypass the filter chain provided by CUPS?
> > >
> > > Any help in this regard would be highly appreciated.
> > >
> > > Thanks,
> > > Mohit
> > You need a (minimal) PPD for your printer which contains the line
> > *cupsFilter: "text/plain 0 -"
> > which tells CUPS that the document format "text/plain" is the native
> > format for
> > your printer and doesn't require any other processing.
> > Helge
SRZ Berlin | Firmengruppe besscom
More information about the cups