]> arthur.barton.de Git - netatalk.git/blob - man/man8/psf.8.tmpl
57b58b40a372aafe0dbd82315e4c03a3c5aae5e4
[netatalk.git] / man / man8 / psf.8.tmpl
1 .TH psf 8 "17 Dec 1991" 2.0.0 Netatalk 
2 .SH NAME
3 psf \- PostScript filter
4 .SH SYNOPSIS
5 \fBpsf\fR [ \-n \fBname\fR ] [ \-h \fBhost\fR ] [ \-w \fBwidth\fR ] [ \-l \fBlength\fR ] [ \-i \fBindent\fR ] [\-c]
6 .SH DESCRIPTION
7 psf is an \fIlpd\fR
8 filter for PostScript printing. psf interprets the name
9 it was called with to determine what filters to invoke. First, if the
10 string ``pap'' appears anywhere in the name, psf
11 invokes \fIpap\fR to talk to a printer via
12 AppleTalk. Next, if the string ``rev'' appears,
13 psf invokes \fIpsorder\fR to
14 reverse the pages of the job. Finally, if psf was
15 called with a filter's name as the leading string, it invokes that
16 filter. If there is no filter to run, psf examines the
17 magic number of the input, and if the input is not PostScript, converts it
18 to PostScript.
19 .SH KLUDGE
20 In the default configuration, psf supports two
21 kludges. The first causes psf to check its name for the
22 letter `m'. If this letter is found and accounting is turned on,
23 psf calls \fIpap\fR twice,
24 once to get an initial page count and to print the job, and another time
25 to get a final page count. This is a work\-around for bugs in a variety of
26 PAP implementions that cause printers to never properly close the PAP
27 output file. A notable example is any printer by Hewlett\-Packard.
28 .PP
29 The second kludge causes psf to examine its name
30 for the letter `w'. If this letter is found and accounting is turned
31 on, psf calls \fIpap\fR with
32 the \fB\-w\fR flag. This flag causes \fIpap\fR
33 to wait until the printer's status contains the string `idle'.
34 Once this string is found, the job is printed as normal. This kludge is a
35 work\-around for printers, notably Hewlett\-Packard's LaserJet IV, which
36 will report a page count while a previous jobs is still printing.
37 .SH EXAMPLE
38 The sample \fIprintcap\fR entry below
39 invokes psf to print text files, PostScript files,
40 \fItroff\fR's C/A/T output, and \fITeX\fR's DVI output, to an AppleTalk connected
41 LaserWriter Plus. Since the LaserWriter Plus stacks pages in descending
42 order, we reverse the pages and print the burst page last.
43 .PP
44 .nf
45
46 laser|lp|LaserWriter Plus on AppleTalk:\\
47     :sd=/usr/spool/lpd/laser:\\
48     :lp=/usr/spool/lpd/laser/null:\\
49     :lf=/var/adm/lpd\-errs:pw#80:hl:\\
50     :of=:LIBEXECDIR:/ofpap:\\
51     :if=:LIBEXECDIR:/ifpaprev:\\
52     :tf=:LIBEXECDIR:/tfpaprev:\\
53     :df=:LIBEXECDIR:/dfpaprev:
54 .fi
55 .PP
56 Note that if the host in question spools to more than one AppleTalk
57 printer, \fB/dev/null\fR should not be used for the
58 \fIlp\fR capability. Instead, a null device
59 should be created with \fImknod\fR for each
60 printer, as has been done above.
61 .PP
62 Finally, there is a file in the spool directory,
63 \fB/var/spool/lpd/laser\fR, called .paprc,
64 which \fIpap\fR reads for the AppleTalk name of
65 the printer.
66 .SH "SEE ALSO"
67 \fBpsorder\fR(1),
68 \fBprintcap\fR(5),
69 \fBlpd\fR(1),
70 \fBmknod\fR(1),
71 \fBpap\fR(1).
72