System Administration Guide

Selecting a File Content Type

Print filters convert the content type of a file to a content type that is acceptable to the destination printer. The file content type tells the LP print service the type of file contents that can be printed directly, without filtering. To print without filtering, the necessary fonts must also be available in the printer. (You must set up and use filtering for other types of files.)

You can specify the file content type for a printer by using the lpadmin -I command or Admintool. With Admintool, you can select a file contents type from a menu. Not all available file content types are listed on the menu. You must use the lpadmin command to specify file content types that are not included on the Admintool menu.

Many printers can print two types of files directly:

When submitting a file for printing, the user can indicate the content type of the file (lp -T content-type). Otherwise, a file is assumed to be simple (ASCII text). The LP print service uses the file content type to determine which filters to use to convert the file contents into a type the printer can handle.

Admintool provides a list of file content types from which you can choose when installing or modifying a local printer. The choices are translated to the names that the LP print service uses. Table 40-2 describes the file content types you can choose with Admintool.

Table 40-2 Choosing File Content Type With Admintool

File Contents Choice 

LP Print Service Name 

Description 

PostScript 

postscript

PostScript files do not require filtering. ASCII files require filtering. 

ASCII 

simple

PostScript files require filtering. ASCII files do not require filtering. 

Both PostScript and ASCII 

simple,postscript

PostScript files and ASCII files do not require filtering. 

None 

""

All files require filtering, except those matching the printer's type. 

Any 

any

No filtering required. If the printer cannot handle a file content type directly, the file will not be printed. 

Choose the file content type that best matches the printer's capabilities. PostScript (which means filtering is not needed for PostScript files) is the default choice in Admintool and is probably correct most of the time.

Frequently Used Printers

This section provides the printer type and file content type for the printers most commonly used with SunOS 5.x software. Although not shown, many of these printers can also directly print files with simple content type.

If you have a PostScript printer, use a printer type of PS or PSR and a content type of postscript. PSR reverses the pagination and prints the banner page last.

Table 40-3 lists additional non-PostScript printers and shows the printer type to use for configuring each printer. For all these printers, the file content type is simple.


Note -

Sun Microsystems does not supply filtering software for the printers listed in Table 40-3, among others. However, you can use unsupported printers if you supply filtering or if the printer can directly print the file content type. If you have questions about any printer for which Sun Microsystems does not supply filters, contact the printer manufacturer.


Table 40-3 Some Non-PostScript Printers for Which Sun Does Not Supply Filters

Printer 

Printer Type 

Daisy 

daisy

Datagraphix 

datagraphix

DEC LA100 

la100

DEC LN03 

ln03

DECwriter 

decwriter

Diablo 

diablo

 

diablo-m8

Epson 2500 variations 

epson2500

 

epson2500-80

 

epson2500-hi

 

epson2500-hi80

Hewlett-Packard HPCL printer 

hplaser

IBM Proprinter 

ibmproprinter

If you want to set up a printer that is not in the terminfo database, see "How to Add a terminfo Entry for an Unsupported Printer".