3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: Netatalk 2.1
7 .\" Source: Netatalk 2.1
10 .TH "PSF" "8" "17 Dec 1991" "Netatalk 2.1" "Netatalk 2.1"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 psf \- PostScript filter
24 .HP \w'\fBpsf\fR\fB\fR\ 'u
25 \fBpsf\fR\fB\fR [\-n\ \fIname\fR] [\-h\ \fIhost\fR] [\-w\ \fIwidth\fR] [\-l\ \fIlength\fR] [\-i\ \fIindent\fR] [\-c]
31 filter for PostScript printing\&.
33 interprets the name it was called with to determine what filters to invoke\&. First, if the string ``pap\'\' appears anywhere in the name,
37 to talk to a printer via AppleTalk\&. Next, if the string ``rev\'\' appears,
41 to reverse the pages of the job\&. Finally, if
43 was called with a filter\'s name as the leading string, it invokes that filter\&. If there is no filter to run,
45 examines the magic number of the input, and if the input is not PostScript, converts it to PostScript\&.
48 In the default configuration,
50 supports two kludges\&. The first causes
52 to check its name for the letter `m\'\&. If this letter is found and accounting is turned on,
56 twice, once to get an initial page count and to print the job, and another time to get a final page count\&. This is a work\-around for bugs in a variety of PAP implementions that cause printers to never properly close the PAP output file\&. A notable example is any printer by Hewlett\-Packard\&.
58 The second kludge causes
60 to examine its name for the letter `w\'\&. If this letter is found and accounting is turned on,
66 flag\&. This flag causes
68 to wait until the printer\'s status contains the string `idle\'\&. Once this string is found, the job is printed as normal\&. This kludge is a work\-around for printers, notably Hewlett\-Packard\'s LaserJet IV, which will report a page count while a previous jobs is still printing\&.
75 to print text files, PostScript files,
76 \fBtroff\fR\'s C/A/T output, and
77 \fBTeX\fR\'s DVI output, to an AppleTalk connected LaserWriter Plus\&. Since the LaserWriter Plus stacks pages in descending order, we reverse the pages and print the burst page last\&.
83 laser|lp|LaserWriter Plus on AppleTalk:\e
84 :sd=/usr/spool/lpd/laser:\e
85 :lp=/usr/spool/lpd/laser/null:\e
86 :lf=/var/adm/lpd\-errs:pw#80:hl:\e
87 :of=:LIBEXECDIR:/ofpap:\e
88 :if=:LIBEXECDIR:/ifpaprev:\e
89 :tf=:LIBEXECDIR:/tfpaprev:\e
90 :df=:LIBEXECDIR:/dfpaprev:
96 Note that if the host in question spools to more than one AppleTalk printer,
98 should not be used for the
100 capability\&. Instead, a null device should be created with
102 for each printer, as has been done above\&.
104 Finally, there is a file in the spool directory,
105 /var/spool/lpd/laser, called
106 \fB\&.paprc\fR, which
108 reads for the AppleTalk name of the printer\&.