Custom Printer Interfaces

This section documents how to modify the HPsupplied printer interfaces and printer model files. You may also create your own printer interfaces for nonHP printers.

Printer Model File Format

Each printer model file contains a set of commands in line 1; the remaining lines are comments. The commands in line 1 are a string of keywords and arguments, each separated by a blank. The commands are:

intf interfacename

Print using the named printer interface. The interface name must be recognized by the copy of the lpout program scheduled. See the next section for a list of printer interfaces supplied with the LP spooler.

If this keyword is not given, then interface rtestd is used for local printers, or interface remote for remote printers.

exec program

Schedule the named program to handle the request. By default, program lpout is scheduled for local printers; program rlpout is scheduled for remote printers (including network peripherals). This keyword allows separate versions of lpout that support various printer interfaces to coexist.

opts options

If this keyword is given, the rest of the line contains interfacespecific options to be automatically passed to the printer interface. These options are given without the leading -o used by the lp program. Options are case sensitive. This keyword must be the last in the line.

For example, the model file line 1:

intf rtestd opts nb

specifies printer interface rtestd with option •nb" always in effect, causing the banner page to never be printed.

You may wish to make copies of HPsupplied printer model files under a new name before making modifications. This prevents future HP distributions from overwriting your modified printer model files.

LP Spool System 261