1
.TH PSF 8 "17 Dec 1991" "netatalk 1.2"
1
.TH psf 8 "17 Dec 1991" 2.0.3 Netatalk
3
3
psf \- PostScript filter
5
\fBpsf\fR [ \-n \fBname\fR ] [ \-h \fBhost\fR ] [ \-w \fBwidth\fR ] [ \-l \fBlength\fR ] [ \-i \fBindent\fR ] [\-c]
28
filter for PostScript printing.
30
interprets the name it was called with to determine what filters to
31
invoke. First, if the string ``pap'' appears anywhere in the name,
35
to talk to a printer via AppleTalk. Next, if the string ``rev'' appears,
39
to reverse the pages of the job. Finally, if
41
was called with a filter's name as the leading string, it invokes that
42
filter. If there is no filter to run,
44
examines the magic number of the input, and if the input is not
45
PostScript, converts it to PostScript.
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
47
In the default configuration,
49
supports two kludges. The first causes
51
to check its name for the letter `m'. If this letter is found and accounting
56
twice, once to get an initial page count and to print the job, and
57
another time to get a final page count. This is a work-around for bugs
58
in a variety of PAP implementions that cause printers to never properly
59
close the PAP output file. A notable example is any printer by
62
The second kludge causes
64
to examine its name for the letter `w'. If this letter is found and
65
accounting is turned on,
71
flag. This flag causes
73
to wait until the printer's status contains the string `idle'. Once
74
this string is found, the job is printed as normal. This kludge is a
75
work-around for printers, notably Hewlett-Packard's LaserJet IV, which
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.
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
76
36
will report a page count while a previous jobs is still printing.
82
to print text files, PostScript files,
86
DVI output, to an AppleTalk connected LaserWriter Plus. Since the
87
LaserWriter Plus stacks pages in descending order, we reverse the pages
88
and print the burst page last.
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.
92
46
laser|lp|LaserWriter Plus on AppleTalk:\\
93
47
:sd=/usr/spool/lpd/laser:\\
94
48
:lp=/usr/spool/lpd/laser/null:\\
95
:lf=/var/adm/lpd-errs:pw#80:hl:\\
96
:of=:LIBDIR:/filters/ofpap:\\
97
:if=:LIBDIR:/filters/ifpaprev:\\
98
:tf=:LIBDIR:/filters/tfpaprev:\\
99
:df=:LIBDIR:/filters/dfpaprev:
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:
103
56
Note that if the host in question spools to more than one AppleTalk
106
should not be used for the
108
capability. Instead, a null device should be created with
110
for each printer, as has been done above.
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.
112
62
Finally, there is a file in the spool directory,
113
.BR /var/spool/lpd/laser ,
118
reads for the AppleTalk name of the printer.
63
\fB/var/spool/lpd/laser\fR, called .paprc,
64
which \fIpap\fR reads for the AppleTalk name of