Debian Codegraph @

foomatic-rip.1.in

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 .\" This -*- nroff -*- source file is part of foomatic.
2
3 .hy 0
4 .TH FOOMATIC-RIP 1 "2002-11-26" "Foomatic Project"
5 .SH NAME
6 foomatic-rip \- Universal print filter/RIP wrapper
7 .SH SYNOPSIS
8
9 .SS \fRGeneral Options:
10 .BI \fBfoomatic-rip\fR\ \fB[-v]\ [-q]\fP \fI\ <spooler-specific\ options>
11
12 .SS \fRSpooler-less printing/CPS (older versions) filter:
13 .BI \fBfoomatic-rip\fR\ \fB[\fB-P\fR \ \fI<printer>\fR \
14 | \ \fB--ppd\fR \ \fI<ppdfile>\fR \fB]\fR \ [\fB-J\fR\ \fI<jobtitle>\fR ]
15 [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB[\fI<files>\fB]\fR
16
17 .SS \fRCUPS filter:
18 .BI \fBfoomatic-rip\fR\ \fI<jobid>\fR \ \fI<user>\fR \ \fI<jobtitle>\fR \ \fI<numcopies>\fR \ \fI<options>\fR \ \fB[\fI<file>\fB]\fR
19
20 .SS \fRLPRng filter:
21 .BI \fBfoomatic-rip\fR\ --lprng\ \fB[\fB-J\fI<jobtitle>\fB]\fR \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR \ \fI<ppdfile>\fR
22 .br
23
24 .BI \fBfoomatic-rip\fR\ \ \fB[\fB-J\fI<jobtitle>\fB]\fR \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR
25 .br
26 (printcap :pdd=<ppdfile>)
27
28 .BI \fBfoomatic-rip\fR\ \fB--ppd\fR \ \fI<ppdfile>\fR \fB[\fB-J\fI<jobtitle>\fB]\fR \ \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR
29
30 .SS \fRLPD/GNUlpr filter:
31 .BI \fBfoomatic-rip\fR\ \fB[\fB-w\fR\ \fI<number>\fB]\fR\ \fB[\fB-l\fR\ \fI<number>\fB]\fR\ \fB[\fB-x\fR\ \fI<number>\fB]\fR\ \fB[\fB-y\fR\ \fI<number>\fB]\fR\ \fB[\fB-i\fR\ \fI<number>\fB]\fR\ \fB[\fB-c\fB]\fR\ \fB[\fB-n\fR\ \fI<string>\fB]\fR\ \fB[\fB-h\fR\ \fI<string>\fB]\fR\ \fB[\fB-j|-J\fR\ \fI<jobtitle>\fB|\fI<options>\fB]\fR\ \fI<ppdfile>\fR
32
33 .SS \fRPPR RIP:
34 .BI \fBfoomatic-rip\fR\ \fB[\fI<option>\fB=\fI<value>\fR \ [...]]
35
36 .SS \fRPPR interface:
37 .BI \fBfoomatic-rip\fR\ \fI<queue>\fR \ \fI<destaddress>\fR \ \fI<options>\fR \ \fI<jobbreak>\fR \ \fI<feedback>\fR \ \fI<codes>\fR \ \fI<jobname>\fR \ \fI<routing>\fR \ \fI<for>\fR \ \fI<filetype>\fR \ \fB[\fI<file>\fB]\fR
38
39 .SS \fRPDQ driver file generation:
40 .BI foomatic-rip\ \fB[\fB--ppd\fR \ \fI<ppdfile>\fB]\fR \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB--genpdq|--appendpdq|--genrawpdq|--appendrawpdq\fR
41
42 .SS \fRPDQ filter:
43 .BI foomatic-rip\ \fB--pdq\fR\ \fB--ppd\fR \ \fI<ppdfile>\fR \fB]\fR \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fI<file>\fR
44
45 .SS \fRCPS (newer versions) filter:
46 .BI \fBfoomatic-rip\fR\ \fB--cps\fR\ \fB-P\fR \ \fI<printer>\fR \ [\fB-J\fR\ \fI<jobtitle>\fR ] \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB[\fI<files>\fB]\fR
47
48 .SH DESCRIPTION
49 foomatic-rip is a universal print filter which works with every known free
50 software printer spooler. It has the following features:
51
52 .Topic
53 It translates PostScript and PDF (and also other file formats) from standard
54 input to the printer's native language (usually put to standard
55 output).
56
57 .Topic
58 The translation is done with an external renderer, usually Ghostscript
59 (\fBgs(1)\fR). If no translation is needed (PostScript printer) the
60 renderer's command line reduces to \fBcat(1)\fR. The way how this
61 translation is done is described in a \fBPPD file\fR.
62
63 .Topic
64 Printer capabilities, how to handle user options, and how to build the
65 renderer command line is always described by \fBPPD files\fR, these
66 PPD files usually come from \fBFoomatic\fR or can be the ones supplied by
67 the manufacturers of PostScript printers. The PPD files are the same
68 for all spoolers.
69
70 .Topic
71 foomatic-rip works with every known spooler (\fBCUPS\fR, \fBLPRng\fR,
72 \fBLPD\fR, \fBGNUlpr\fR, \fBPPR\fR, \fBPDQ\fR, \fBCPS\fR, and
73 \fBwithout spooler\fR). It auto-detects the spooler from which it was
74 called by the command line options and environment variables which
75 were supplied by the spooler.
76
77 .Topic
78 Non-PostScript/PDF files are translated to PostScript before they are
79 passed to the renderer. This is usually done by \fBa2ps(1)\fR,
80 \fBenscript(1)\fR, or \fBmpage(1)\fR. foomatic-rip auto-detects which
81 program is installed, but manual configuration is also possible.
82
83 .Topic
84 foomatic-rip does not only apply option settings supplied by the user
85 through the command line of the printing command, but also searches
86 the entire job for embedded option settings (only PostScript
87 jobs). Here not only settings which affect the whole job are taken into
88 account, but also settings in the page headers, which are only valid
89 for the page where they were found, so applications which produce
90 PostScript code with page-specific printer option settings are fully
91 supported.
92
93 .SH SPOOLER-LESS PRINTING
94
95 .SS Options
96
97 .TP 10
98 .B \-v
99 \fRverbose mode for debugging.
100 .B WARNING:
101 This will create a file in /tmp that contains the debugging information.
102 This opens a security loophole and should not be used in production.
103
104 .TP 10
105 .B \-q
106 \fRquiet mode - minimal information output
107
108 .TP 10
109 .BI \-P \ <printer>
110 \fI<printer>\fR is the configured printer which should be used for this job.
111
112 .TP 10
113 .BI \--ppd \ <ppdfile>
114 The PPD file \fI<ppdfile>\fR should be applied for processing this job.
115 .TP 10
116 .BI \-J \ <jobtitle>
117 The \fI<jobtitle>\fR will be printed in the head line of every page of
118 a plain text job.
119 .TP 10
120 .BI \-o \ \fI<option>\fB=\fI<value>\fR
121 Option settings for this job, do
122
123 .B foomatic-rip -P \fI<printer>\fR \fB-o docs \fI<file>\fR
124
125 (\fI<file>\fR can be an arbitrary existing file, as \fB.bashrc\fR,
126 will not be printed) to print a list of available options for the
127 specified \fI<printer>\fR.
128 .TP 10
129 .BI \fI<files>\fR
130 The file(s) to be printed.
131
132 .P
133 \fBfoomatic-rip\fR will print from standard input unless at least one file to
134 be printed is specified on the command line.
135 If your printer PPD file is stored as \fI@sysconfdir@/direct/<printer>.ppd\fR
136 or \fI~/.foomatic/direct/<printer>.ppd\fR you can use it by simply specifying "-P \fI<printer>\fR".
137
138 Put a line
139
140 \fB*FoomaticRIPPostPipe: "| \fI<command>\fB"\fR
141 .hy 0
142
143 into the PPD file, right after \fB*PPD-Adobe: "4.3"\fR, where
144 \fI<command>\fR is a command into which you want to re-direct the
145 output data. Due to the restrictions of PPD files \fB<\fR, \fB>\fR, and
146 \fB"\fR are not allowed in the \fI<command>\fR, replace them as
147 follows:
148
149 .CodeSkip
150 .nf
151 .B Character Replacement
152 .B ---------------------
153 .B < &lt;
154 .B > &gt;
155 .B " &quot;
156 .B ' &apos;
157 .B & &amp;
158 .fi
159
160 This way you can print directly to your printer, use
161
162 \fB*FoomaticRIPPostPipe: "| cat &gt; /dev/lp0"\fR
163
164 or
165
166 \fB*FoomaticRIPPostPipe: "| cat &gt; /dev/usb/lp0"\fR
167
168 for local parallel or USB printers. To make normal users able to print
169 this way add them to the group \fBlp\fR and make sure that the
170 appropriate printer device file \fI/dev/...\fR is group-writable for
171 the \fBlp\fR group.
172
173 for a TCP/Socket/JetDirect printer with the host name \fBprinter\fR
174 listening on port \fB9100\fR you need this:
175
176 \fB*FoomaticRIPPostPipe: "| /usr/bin/nc -w 1 printer 9100"\fR
177
178 Note the "-w 1" in the "nc" command line, it makes "nc" exiting
179 immediately after the data is transferred to the printer.
180
181 \fB*FoomaticRIPPostPipe: "| rlpr -Plp@printserver"\fR
182
183 directs your jobs to the LPD printer queue \fBlp\fR on the machine
184 named \fBprintserver\fR.
185
186 See also http://www.openprinting.org/direct-doc.html
187
188 .SH "PRINTING WITH SPOOLER"
189
190 See the documentation on the OpenPrinting Web site:
191 .ft CW
192 http://www.openprinting.org/
193 \fR
194
195 .SH "CONFIGURATION FILE"
196
197 The file \fB@sysconfdir@/foomatic/filter.conf\fR is read whenever
198 foomatic-rip is executed. It allows to configure the behavior of
199 foomatic-rip as follows (lines beginning with \fB#\fR are comments and
200 therefore get ignored):
201
202 .TP 10
203 .BI textfilter: \ <command>
204 \fRSelects the filter for input files which are not PostScript or PDF.
205 \fI<command>\fR is one of \fBa2ps\fR, \fBenscript\fR, or \fBmpage\fR.
206 foomatic-rip automatically selects the needed command line options.
207
208 .TP 10
209 .B debug: 0|1
210 \fRTurns on (\fB1\fR) or off (\fB0\fR) the debug mode. This is equivalent to
211 supplying the \fB--debug\fR command line option. Default setting is \fB0\fR.
212
213 .TP 10
214 .B ps_accounting: 0|1
215 \fRTurns on (\fB1\fR) or off (\fB0\fR) inserting PostScript code for page
216 accounting into PostScript jobs. The inserted PostScript code makes
217 Ghostscript generating accounting output on stderr and CUPS can this way
218 log each page which got printed. The code will only be inserted if CUPS
219 is the spooler. Default setting is \fB1\fR.
220
221 .TP 10
222 .BI echo: \ [<path>/]<executable>
223 \fRSets the path to an \fBecho(1)\fR executable which supports \fB-n\fR.
224
225 .TP 10
226 .BI gspath: \ [<path>/]<executable>
227 \fRSets the path to the Ghostscript (\fBgs(1)\fR) executable. To be used if
228 Ghostscript is at a non-standard location or if an alternative Ghostscript
229 should be used.
230
231 .TP 10
232 .BI execpath: \ <path>[:<path>]...
233 \fRSets the \fB$PATH\fR variable to be used by foomatic-rip.
234
235 .TP 10
236 .BI cupsfilterpath: \ <path>[:<path>]...
237 \fRSets the directories (colon-separated) in which foomatic-rip searches for
238 CUPS filters.
239
240 .TP 10
241 .BI preferred_shell: \ [<path>/]<executable>
242 \fRSets the preferred shell to use when executing FoomaticRIPCommandLine and
243 friends. Several PPD files use shell constructs that require a more
244 modern shell like \fBbash\fR, \fBzsh\fR, or \fBksh\fR.
245
246
247 .SH FILES
248 .PD 0
249 .TP 0
250 @sysconfdir@/cups/ppd/<printer>.ppd
251 .TP 0
252 @sysconfdir@/lpd/<printer>.ppd
253 .TP 0
254 @sysconfdir@/ppr/<printer>.ppd
255 .TP 0
256 @sysconfdir@/pdq/<printer>.ppd
257 .TP 8
258 @sysconfdir@/direct/<printer>.ppd
259
260 The PPD files of the currently defined printers
261
262 .TP 8
263 @sysconfdir@/foomatic/filter.conf
264
265 Configuration file for foomatic-rip
266
267 .PD 0
268
269 .\".SH SEE ALSO
270 .\".IR foomatic-XXX (1),
271
272 .SH EXIT STATUS
273 .B foomatic-rip
274 returns 0 unless something unexpected happens.
275
276 .SH AUTHOR
277 Till Kamppeter <\[email protected]\fR> with parts of Manfred
278 Wassmanns's <\[email protected]\fR> man pages for the
279 Foomatic 2.0.x filters.
280
281 .SH BUGS
282 None so far.
283
284 Please send bug reports to the Foomatic mailing list:
285
286 http://lists.freestandards.org/mailman/listinfo/printing-foomatic