Specifications

6-27
System V Printer Configuration
This template is used to convert a MODES option of the form –y group=number into filter
options –nnumber.
So if a user gives the command lp –y group=4, the dpost command would include the
option –n4.
For additional examples, run the command
/usr/sbin/lpfilter –f filter –l
where filter is the name of the factory–installed PostScript filters. (For a list of PostScript
filters, see PostScript Printers on page 6-31.)
Adding a Filter to the Print Service
To add the filter to the system after it has been defined, use one of the following commands:
/usr/sbin/lpfilter –f filter–name –F filename
/usr/sbin/lpfilter –f filter–name
The first command gets the filter definition from a file, and the second command gets the
filter definition from the standard input. A filter–name can be any string you choose, with a
maximum of 14 alphanumeric characters and underscores.
If you need to change a filter, reenter one of the same commands. You need provide
information only for those items that must be changed. Items for which you do not specify
new information remain the same.
Removing a Filter
The print service imposes no fixed limit on the number of filters you can define. Remove
filters that are no longer applicable to avoid extra processing by the print service, which
must examine all filters to find one that works in a given situation.
To remove a filter, run the following command:
/usr/sbin/lpfilter –f filter–name –x
Examining a Filter
After you have added a filter definition to the print service, you can examine it by running the
lpfilter command. The output of this command is the filter definition displayed in a format
that makes it suitable as input. You may want to save this output in a file that you can use
later to redefine the filter if you inadvertently remove the filter from the print service.
To present the definition of the filter on your screen, enter the following command:
/usr/sbin/lpfilter –f filter–name –l
To capture the definition of the filter in a file for future reference, enter the following
command:
/usr/sbin/lpfilter –f filter–name –l > filename
Restoring Factory Defaults for Filters
The software is shipped from the factory with a default set of filters. As you add, change, or
delete filters, you might overwrite or remove some of these original filters.
To restore some or all of the default set of filters to their original form after having changed
them, enter this command:
/usr/sbin/lpfilter –f filter–name –i
Replace filter–name with the name of the filter to restore or the word all to restore all the
default filters.