Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 68 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here



       foomatic-rip - Universal print filter/RIP wrapper


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

   CUPS filter:
       foomatic-rip <jobid> <user> <jobtitle> <num­
       copies> <options> [<file>]

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

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

       foomatic-rip [<option>=<value> [...]]

   PPR interface:
       foomatic-rip <queue> <destaddress> <options> <job­
       break> <feed­
       back> <codes> <jobname> <routing> <for> <file­
       type> [<file>]

   PDQ driver file generation:
       rip [--ppd <ppdfile>] [-o <option>=<value> [...]] --gen­

   PDQ filter:
       rip --pdq --ppd <ppdfile>] [-o <option>=<value> [...]] <file>

   CPS (newer versions) filter:
       foomatic-rip --cps -P <printer> [-J <jobti­
       tle>] [-o <option>=<value> [...]] [<files>]

         (PostScript printer) the renderer's command line reduces
         to cat(1). The way  how  this  translation  is  done  is
         described in a PPD file.

       · 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  manufactur­
         ers  of  PostScript printers. The PPD files are the same
         for all spoolers.

       · 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.

       · 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 configu­
         ration is also possible.

       · foomatic-rip does not only apply  option  settings  sup­
         plied by the user through the command line of the print­
         ing command, but also searches the entire job for embed­
         ded  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.


       -P <printer>
                 <printer> is the configured printer which should
                 be used for this job.

       --ppd <ppdfile>
                 The  PPD  file  <ppdfile>  should be applied for
                 processing this job.

       -J <jobtitle>
                 The <jobtitle> will be printed in the head  line
                 of every page of a plain text job.

       printer       PPD       file       is       stored      as
       /etc/foomatic/direct/<printer>.ppd                      or
       ~/.foomatic/direct/<printer>.ppd  you can use it by simply
       specifying "-P <printer>".

       Put a line

       *FoomaticRIPPostPipe: "| <command>"

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

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

       This way you can print directly to your printer, use

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


       *FoomaticRIPPostPipe: "| cat &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

       *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


       foomatic-rip  returns  0  unless something unexpected hap­


       Till Kamppeter <till.kamppeter@gmx.net> with parts of Man­
       fred  Wassmanns's <manolo@NCC-1701.B.Shuttle.de> man pages
       for the Foomatic  2.0.x  filters  (directomatic(1),  lpdo­


       None so far.

       Please  send  bug  reports  to  foomatic-devel@linuxprint­

Foomatic Project            2002-11-26            FOOMATIC-RIP(1)
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds