DFprint_filter

DFprint_filter — Format input file(s) for printing to a PostScript® capable printer, and print to a specified printer

Synopsis

DFprint_filter [-p string] [-c #] [-o string] [-f string]

Description

DFprint_filter is the main print interface. DFdiscover programs that send output to a printer may use DFprint_filter to format the output into PostScript® format, if necessary, and then spool the output to a printer.

DFprint_filter is capable of re-formatting PNG and Sun rasterfiles (the image formats used in DFdiscover), ASCII text files, and PostScript® files.

Options

-p string

direct the output to the specified printer. If this argument is missing, and the environment variable PRINTER is defined, the value of the environment variable will be taken as the name of the printer. Otherwise, the default printer is the first printer specified in /opt/dfdiscover/lib/DFprinters, if the file is present and non-empty. If this is not customized locally, the system default printer, lp, is used.

-c #

the number of copies to print. The default is 1.

-o string

pass the user-supplied options to the print pre-processor. The print pre-processor is DFpsprint (for image files) and DFtextps (for all other files). DFtextps accepts additional user options that can be passed via this option. For example, -o -p8 will cause the input text file to be printed in 8-point font rather than the default 10-point font.

-f string

the name of the input file. If the filename is not provided, or is given as -, the input is assumed to come from the standard input.

Exit Status

DFprint_filter exits with one of the following statuses:

0

Always.

Examples

Example 3.63. Print the UNIX password file to the printer "hplj"

% /opt/dfdiscover/lib/DFprint_filter -p hplj -f /etc/passwd