1
2FOOMATIC-RIP(1) General Commands Manual FOOMATIC-RIP(1)
3
4
5
7 foomatic-rip - Universal print filter/RIP wrapper
8
10 General Options:
11 foomatic-rip [-v] [-q] [-d] <filter specific options>
12
13
14 Spooler-less printing/CPS (older versions) filter:
15 foomatic-rip [-P <printer> | --ppd <ppdfile> ] [-J <jobtitle> ] [-o
16 <option>=<value> [...]] [<files>]
17
18
19 CUPS filter:
20 foomatic-rip <jobid> <user> <jobtitle> <numcopies> <options> [<file>]
21
22
23 LPRng filter:
24 foomatic-rip --lprng [-J<jobti‐
25 tle>][-Z<option>=<value>[,<option>=<value>[, ...]] <ppdfile>
26
27 foomatic-rip [-J<jobti‐
28 tle>][-Z<option>=<value>[,<option>=<value>[, ...]]
29 (printcap :pdd=<ppdfile>)
30
31 foomatic-rip --ppd <ppdfile>[-J<jobti‐
32 tle>] [-Z<option>=<value>[,<option>=<value>[, ...]]
33
34
35 LPD/GNUlpr filter:
36 foomatic-rip [-w <number>] [-l <number>] [-x <number>] [-y <num‐
37 ber>] [-i <number>] [-c] [-n <string>] [-h <string>] [-j|-J <jobti‐
38 tle>|<options>] <ppdfile>
39
40
41 PPR RIP:
42 foomatic-rip [<option>=<value> [...]]
43
44
45 PPR interface:
46 foomatic-rip <queue> <destaddress> <options> <jobbreak> <feed‐
47 back> <codes> <jobname> <routing> <for> <filetype> [<file>]
48
49
50 PDQ driver file generation:
51 foomatic-rip [--ppd <ppdfile>] [-o <option>=<value> [...]] --gen‐
52 pdq|--appendpdq|--genrawpdq|--appendrawpdq
53
54
55 PDQ filter:
56 foomatic-rip --pdq --ppd <ppdfile>] [-o <option>=<value> [...]] <file>
57
58
59 CPS (newer versions) filter:
60 foomatic-rip --cps -P <printer> [-J <jobti‐
61 tle>] [-o <option>=<value> [...]] [<files>]
62
63
65 foomatic-rip is a universal print filter which works with every known
66 free software printer spooler. It has the following features:
67
68 It translates PostScript (and also other file formats) from standard
69 input to the printer's native language (usually put to standard out‐
70 put).
71
72 The translation is done with an external renderer, usually GhostScript
73 (gs(1)). If no translation is needed (PostScript printer) the ren‐
74 derer's command line reduces to cat(1). The way how this translation is
75 done is described in a PPD file.
76
77 Printer capabilities, how to handle user options, and how to build the
78 renderer command line is always described by PPD files, these PPD files
79 can come from Foomatic or can be the ones supplied by the manufacturers
80 of PostScript printers. The PPD files are the same for all spoolers.
81
82 foomatic-rip works with every known spooler (CUPS, LPRng, LPD, GNUlpr,
83 PPR, PDQ, CPS, and without spooler). It auto-detects the spooler from
84 which it was called by the command line options and environment vari‐
85 ables which were supplied by the spooler.
86
87 Non-PostScript files are translated to PostScript before they are
88 passed to the renderer. This is usually done by a2ps(1), enscript(1),
89 or mpage(1). foomatic-rip auto-detects which program is installed, but
90 manual configuration is also possible.
91
92 foomatic-rip does not only apply option settings supplied by the user
93 through the command line of the printing command, but also searches the
94 entire job for embedded option settings (only PostScript jobs). Here
95 not only settings affectimg the whole job are taken into account, but
96 also settings in the page headers, which are only valid for the page
97 where they were found, so applications which produce PostScript code
98 with page-specific printer option settings are fully supported.
99
100
102 Options
103 -v verbose mode for debugging. WARNING: This will create a file
104 in /tmp that contains the debugging information. This opens
105 a security loophole and should not be used in production.
106
107
108 -q quiet mode - minimal information output
109
110
111 -d identical to the 'opts' option, but option information is
112 left in text format. This is useful for running foomatic-rip
113 from the command line to determine what the printer option
114 are. The PPD file will need to be specified using the --ppd
115 option.
116
117
118 -P <printer>
119 <printer> is the configured printer which should be used for
120 this job.
121
122
123 --ppd <ppdfile>
124 The PPD file <ppdfile> should be applied for processing this
125 job.
126
127 -J <jobtitle>
128 The <jobtitle> will be printed in the head line of every page
129 of a plain text job.
130
131 -o <option>=<value>
132 Option settings for this job, do
133
134 foomatic-rip -P <printer> -o docs <file>
135
136 (<file> can be an arbitrary existing file, as .bashrc, will
137 not be printed) to print a list of available options for the
138 specified <printer>.
139
140 <files> The file(s) to be printed.
141
142
143 foomatic-rip will print from standard input unless a file to print is
144 specified on the command line. If your printer PPD file is stored as
145 /etc/direct/<printer>.ppd or ~/.foomatic/direct/<printer>.ppd you can
146 use it by simply specifying "-P <printer>".
147
148 Put a line
149
150 *FoomaticRIPPostPipe: "| <command>"
151
152 into the PPD file, right after *PPD-Adobe: "4.3", where <command> is a
153 command into which you wnat to re-direct the output data. Due to the
154 restictions of PPD files <, >, and " are not allowed in the <command>,
155 replace them as follows:
156
157 Character Replacement
158 ---------------------
159 < <
160 > >
161 " "
162 ' '
163 & &
164
165 This way you can print directly to your printer, use
166
167 *FoomaticRIPPostPipe: "| cat > /dev/lp0"
168
169 or
170
171 *FoomaticRIPPostPipe: "| cat > /dev/usb/lp0"
172
173 for local parallel or USB printers. To make normal users able to print
174 this way add them to the group lp and make sure that the appropriate
175 printer device file /dev/... is group-writable for the lp group.
176
177 for a TCP/Socket/JetDirect printer with the host name printer listening
178 on port 9100 you need this:
179
180 *FoomaticRIPPostPipe: "| /usr/bin/nc -w 1 printer 9100"
181
182 Note the "-w 1" in the "nc" command line, it makes "nc" exiting
183 immediately after the data is tranferred to the printer.
184
185 *FoomaticRIPPostPipe: "| rlpr -Plp@printserver"
186
187 directs your jobs to the LPD printer queue lp on the machine named
188 printserver.
189
190 See also http://www.openprinting.org/direct-doc.html
191
192
194 See the documentation on the OpenPrinting Web site:
195 http://www.openprinting.org/
196
197
199 /etc/cups/<printer>.ppd
200 /etc/lpd/<printer>.ppd
201 /etc/ppr/<printer>.ppd
202 /etc/pdq/<printer>.ppd
203 /etc/direct/<printer>.ppd
204
205 The PPD files of the currently defined printers
206
207
209 foomatic-rip returns 0 unless something unexpected happens.
210
212 Till Kamppeter <till.kamppeter@gmail.com> with parts of Manfred
213 Wassmanns's <manolo@NCC-1701.B.Shuttle.de> man pages for the Foomatic
214 2.0.x filters.
215
217 None so far.
218
219 Please send bug reports to the Foomatic mailing list:
220
221 http://lists.freestandards.org/mailman/listinfo/printing-foomatic
222
223
224
225Foomatic Project 2002-11-26 FOOMATIC-RIP(1)