filter for PostScript printing.
interprets the name it was called with to determine what filters to
invoke. First, if the string ``pap'' appears anywhere in the name,
to talk to a printer via AppleTalk. Next, if the string ``rev'' appears,
to reverse the pages of the job. Finally, if
was called with a filter's name as the leading string, it invokes that
filter. If there is no filter to run,
examines the magic number of the input, and if the input is not
PostScript, converts it to PostScript.
In the default configuration,
supports two kludges. The first causes
to check its name for the letter `m'. If this letter is found and accounting
is turned on,
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
The second kludge causes
to examine its name for the letter `w'. If this letter is found and
accounting is turned on,
flag. This flag causes
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.
entry below invokes
to print text files, PostScript files,
C/A/T output, and
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.
laser|lp|LaserWriter Plus on AppleTalk:\
Note that if the host in question spools to more than one AppleTalk
should not be used for the
capability. Instead, a null device should be created with
for each printer, as has been done above.
Finally, there is a file in the spool directory,
reads for the AppleTalk name of the printer.