foomatic-rip - Universal print filter/RIP wrapper
General Options: foomatic-rip [-v] [-q] <mode-specific options> Spooler-less printing filter: foomatic-rip [-P <printer> | --ppd <ppdfile> ] [-J <jobtitle> ] [-o <option>=<value> [...]] [<files>] CUPS filter: foomatic-rip <jobid> <user> <jobtitle> <numcopies> <options> [<file>]
foomatic-rip is a universal print filter which can be used as CUPS filter or stand-alone for spooler-less, direct printing. It has the following features: · It translates PostScript and PDF from standard input or a file to the printer's native language on standard output. · The translation is done with an external renderer, usually Ghostscript (gs(1)). If no translation is needed (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 usually come from Foomatic or can be the ones supplied by the manufacturers of PostScript printers. The PPD files are the same for both CUPS and direct printing. · foomatic-rip works with CUPS and for direct printing (without spooler), where the latter is mainly for testing and debugging. The mode is selected by the command line options and environment variables which are supplied to foomatic-rip. · 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 which affect 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.
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 -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. -o <option>=<value> Option settings for this job. <files> The file(s) to be printed. foomatic-rip will print from standard input unless at least one file to be printed is specified on the command line. If your printer PPD file is stored as /etc/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 want to re-direct the output data. Due to the restrictions of PPD files <, >, and " are not allowed in the <command>, replace them as follows: Character Replacement --------------------- < < > > " " ' ' & & This way you can print directly to your printer, use *FoomaticRIPPostPipe: "| cat > /dev/lp0" or *FoomaticRIPPostPipe: "| cat > /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 transferred 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.openprinting.org/direct-doc.html
See the documentation on the OpenPrinting Web site: http://www.openprinting.org/
The file /etc/cups/foomatic-rip.conf or if it is not readable the file /etc/foomatic/filter.conf is read whenever foomatic-rip is executed. It allows to configure the behavior of foomatic-rip as follows (lines beginning with # are comments and therefore get ignored): debug: 0|1 Turns on (1) or off (0) the debug mode. This is equivalent to supplying the --debug command line option. Default setting is 0. echo: [<path>/]<executable> Sets the path to an echo(1) executable which supports -n. gspath: [<path>/]<executable> Sets the path to the Ghostscript (gs(1)) executable. To be used if Ghostscript is at a non-standard location or if an alternative Ghostscript should be used. execpath: <path>[:<path>]... Sets the $PATH variable to be used by foomatic-rip. cupsfilterpath: <path>[:<path>]... Sets the directories (colon-separated) in which foomatic-rip searches for CUPS filters. preferred_shell: [<path>/]<executable> Sets the preferred shell to use when executing FoomaticRIPCommandLine and friends. Several PPD files use shell constructs that require a more modern shell like bash, zsh, or ksh.
/etc/cups/ppd/<printer>.ppd /etc/direct/<printer>.ppd The PPD files of the currently defined printers /etc/cups/foomatic-rip.conf /etc/foomatic/filter.conf Configuration file for foomatic-rip
foomatic-rip returns 0 unless something unexpected happens.
Till Kamppeter <firstname.lastname@example.org> with parts of Manfred Wassmanns's <manolo@NCC-1701.B.Shuttle.de> man pages for the Foomatic 2.0.x filters.
None so far. Please send bug reports to the OpenPrinting bug tracker: http://bugs.linuxfoundation.org/ Use "OpenPrinting" as the product and "cups-filters" as the component.
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.