unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (Debian-3.1)
Page:
Section:
Apropos / Subsearch:
optional field


FOOMATIC-RIP(1)             General Commands Manual            FOOMATIC-RIP(1)



NAME
       foomatic-rip - Universal print filter/RIP wrapper

SYNOPSIS
   General Options:
       foomatic-rip [-v] [-q] [-d] <filter specific options>


   Spooler-less printing/CPS (older versions) filter:
       foomatic-rip [-P <printer>  |  --ppd  <ppdfile> ]  [-J <jobtitle> ] [-o
        <option>=<value>  [...]]  [<files>]


   CUPS filter:
       foomatic-rip <jobid> <user> <jobtitle> <numcopies> <options> [<file>]


   LPRng filter:
       foomatic-rip --lprng [-J<jobti-
       tle>][-Z<option>=<value>[,<option>=<value>[, ...]] <ppdfile>

       foomatic-rip  [-J<jobti-
       tle>][-Z<option>=<value>[,<option>=<value>[, ...]]
       (printcap :pdd=<ppdfile>)

       foomatic-rip --ppd &lt;ppdfile&gt;[-J&lt;jobti-
       tle&gt;] [-Z&lt;option&gt;=&lt;value&gt;[,&lt;option&gt;=&lt;value&gt;[, ...]]


   LPD/GNUlpr filter:
       foomatic-rip [-w &lt;number&gt;] [-l &lt;number&gt;] [-x &lt;number&gt;] [-y &lt;num-
       ber&gt;] [-i &lt;number&gt;] [-c] [-n &lt;string&gt;] [-h &lt;string&gt;] [-j|-J &lt;jobti-
       tle&gt;|&lt;options&gt;] &lt;ppdfile&gt;


   PPR RIP:
       foomatic-rip [&lt;option&gt;=&lt;value&gt; [...]]


   PPR interface:
       foomatic-rip &lt;queue&gt; &lt;destaddress&gt; &lt;options&gt; &lt;jobbreak&gt; &lt;feed-
       back&gt; &lt;codes&gt; &lt;jobname&gt; &lt;routing&gt; &lt;for&gt; &lt;filetype&gt; [&lt;file&gt;]


   PDQ driver file generation:
       foomatic-rip [--ppd &lt;ppdfile&gt;] [-o &lt;option&gt;=&lt;value&gt; [...]] --gen-
       pdq|--appendpdq|--genrawpdq|--appendrawpdq


   PDQ filter:
       foomatic-rip --pdq --ppd &lt;ppdfile&gt;] [-o &lt;option&gt;=&lt;value&gt; [...]] &lt;file&gt;


   CPS (newer versions) filter:
       foomatic-rip --cps -P &lt;printer&gt; [-J &lt;jobti-
       tle&gt;] [-o &lt;option&gt;=&lt;value&gt; [...]] [&lt;files&gt;]


DESCRIPTION
       foomatic-rip is a universal print filter which works with  every  known
       free software printer spooler. It has the following features:


       o It  translates PostScript (and also other file formats) from standard
         input to the printer's native language (usually put to standard  out-
         put).


       o The  translation  is  done  with an external renderer, usually Ghost-
         Script (gs(1)). If no translation is needed (PostScript printer)  the
         renderer's  command line reduces to cat(1). The way how this transla-
         tion is done is described in a PPD file.


       o Printer capabilities, how to handle user options, and  how  to  build
         the renderer command line is always described by PPD files, these PPD
         files can come from Foomatic or can be the ones supplied by the manu-
         facturers  of PostScript printers. The PPD files are the same for all
         spoolers.


       o foomatic-rip works  with  every  known  spooler  (CUPS,  LPRng,  LPD,
         GNUlpr,  PPR,  PDQ,  CPS,  and  without spooler). It auto-detects the
         spooler from which it was called by  the  command  line  options  and
         environment variables which were supplied by the spooler.


       o Non-PostScript  files  are  translated  to PostScript before they are
         passed to the renderer. This is usually done by a2ps(1), enscript(1),
         or  mpage(1).  foomatic-rip  auto-detects which program is installed,
         but manual configuration is also possible.


       o foomatic-rip does not only apply option settings supplied by the user
         through  the  command line of the printing command, but also searches
         the entire job for embedded option settings (only  PostScript  jobs).
         Here  not  only  settings  affectimg  the  whole  job  are taken into
         account, but also settings in the page headers, which are only  valid
         for  the  page  where  they were found, so applications which produce
         PostScript code with page-specific printer option settings are  fully
         supported.


SPOOLER-LESS PRINTING
   Options
       -v        verbose mode for debugging.  WARNING: This will create a file
                 in /tmp that contains the debugging information.  This  opens
                 a security loophole and should not be used in production.


       -q        quiet mode - minimal information output


       -d        identical  to  the  'opts'  option, but option information is
                 left in text format.  This is useful for running foomatic-rip
                 from  the  command  line to determine what the printer option
                 are.  The PPD file will need to be specified using the  --ppd
                 option.


       -P &lt;printer&gt;
                 &lt;printer&gt;  is the configured printer which should be used for
                 this job.


       --ppd &lt;ppdfile&gt;
                 The PPD file &lt;ppdfile&gt; should be applied for processing  this
                 job.

       -J &lt;jobtitle&gt;
                 The &lt;jobtitle&gt; will be printed in the head line of every page
                 of a plain text job.

       -o &lt;option&gt;=&lt;value&gt;
                 Option settings for this job, do

                 foomatic-rip -P &lt;printer&gt; -o docs &lt;file&gt;

                 (&lt;file&gt; can be an arbitrary existing file, as  .bashrc,  will
                 not  be printed) to print a list of available options for the
                 specified &lt;printer&gt;.

       &lt;files&gt;   The file(s) to be printed.


       foomatic-rip will print from standard input unless a file to  print  is
       specified  on  the command line.  If your printer PPD file is stored as
       /etc/foomatic/direct/&lt;printer&gt;.ppd or  ~/.foomatic/direct/&lt;printer&gt;.ppd
       you can use it by simply specifying "-P &lt;printer&gt;".

       Put a line

       *FoomaticRIPPostPipe: "| &lt;command&gt;"

       into  the PPD file, right after *PPD-Adobe: "4.3", where &lt;command&gt; is a
       command into which you wnat to re-direct the output data.  Due  to  the
       restictions  of PPD files <&lt;, >&gt;, and " are not allowed in the &lt;command&gt;,
       replace them as follows:


       Character Replacement
       ---------------------
            <&lt;    &&amp;lt;
            >&gt;    &&amp;gt;
            "    &&amp;quot;
            '    &&amp;apos;
            &&amp;    &&amp;amp;

       This way you can print directly to your printer, use

       *FoomaticRIPPostPipe: "| cat &&amp;gt; /dev/lp0"

       or

       *FoomaticRIPPostPipe: "| cat &&amp;gt; /dev/usb/lp0"

       for local parallel or USB printers. To make normal users able to  print
       this  way  add  them to the group lp and make sure that the appropriate
       printer device file /dev/... is group-writable for the lp group.

       for a TCP/Socket/JetDirect printer with the host name printer listening
       on port 9100 you need this:

       *FoomaticRIPPostPipe: "| /usr/bin/nc -w 1 printer 9100"

       Note  the  "-w  1"  in  the  "nc"  command  line, it makes "nc" exiting
       immediately after the data is tranferred to the printer.

       *FoomaticRIPPostPipe: "| rlpr -Plp@printserver"

       directs your jobs to the LPD printer queue  lp  on  the  machine  named
       printserver.

       See also http://www.linuxprinting.org/direct-doc.html


PRINTING WITH SPOOLER
       See    the    documentation   on   the   Linux   Printing   Web   site:
       http://www.linuxprinting.org


FILES
       /etc/foomatic/cups/<printer>.ppd
       /etc/foomatic/lpd/<printer>.ppd
       /etc/foomatic/ppr/<printer>.ppd
       /etc/foomatic/pdq/<printer>.ppd
       /etc/foomatic/direct/<printer>.ppd

               The PPD files of the currently defined printers


EXIT STATUS
       foomatic-rip returns 0 unless something unexpected happens.

AUTHOR
       Till  Kamppeter  <till.kamppeter@gmx.net>   with   parts   of   Manfred
       Wassmanns's  <manolo@NCC-1701.B.Shuttle.de>  man pages for the Foomatic
       2.0.x filters.

BUGS
       None so far.

       Please send bug reports to foomatic-develATlinuxprinting.org.



Foomatic Project                  2002-11-26                   FOOMATIC-RIP(1)