JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Printing     Oracle Solaris 10 8/11 Information Library
search filter icon
search icon

Document Information

About This Book

1.  Introduction to Printing in the Oracle Solaris Operating System

2.  Planning for Printing (Tasks)

3.  Setting Up Network Printing Services (Tasks)

4.  Setting Up and Administering Printers by Using Oracle Solaris Print Manager (Tasks)

5.  Setting Up Printers by Using LP Print Commands (Tasks)

6.  Administering Printers by Using LP Print Commands (Tasks)

7.  Customizing LP Printing Services and Printers (Tasks)

8.  Administering the LP Print Scheduler and Managing Print Requests (Tasks)

9.  Administering Printers on a Network (Tasks)

10.  Administering Character Sets, Filters, Forms, and Fonts (Tasks)

Administering Character Sets (Task Map)

Administering Character Sets

Selectable Character Sets

Hardware Character Sets

Tracking Print Wheels

Alerts for Mounting Print Wheels or Font Cartridges

How to Define a Print Wheel or Font Cartridge

How to Unmount and Mount a Print Wheel or Font Cartridge

How to Set an Alert to Mount a Print Wheel or Font Cartridge

How to Set Up an Alias for a Selectable Character Set

Administering Print Filters (Task Map)

Creating a New Print Filter

Writing a Print Filter Program

Types of Filters

Converting Files

Handling Special Printing Modes

Detecting Printer Faults

Requirements for a Print Filter Program

Creating a Print Filter Definition

lpfilter Command

lpfilter Input Types Argument

lpfilter Output Types Argument

lpfilter Printer Types Argument

lpfilter Printers Argument

lpfilter Filter Type Argument

lpfilter Options Argument

Defining Print Filter Options With Templates

How to Create a New Print Filter

Administering Print Filters

Creating Print Filters

Adding, Changing, Deleting, and Restoring Print Filters

How to Add a Print Filter

How to Delete a Print Filter

How to View Information About a Print Filter

Administering Forms (Task Map)

Creating a New Printer Form

How to Create a New Printer Form Definition

Administering Forms

Adding, Changing, or Deleting Forms

How to Add a Form

How to Delete a Form

Mounting Forms

How to Unmount and Mount a Form

Tracking Forms

Defining Alerts for Mounting Forms

How to Set an Alert to Mount a Form

Checking Forms

How to View Information About a Form

How to View the Current Status of a Form

Limiting Access to Forms

How to Limit User Access to a Form

How to Limit Printer Access to a Form

Administering Fonts (Task Map)

Administering Fonts

Managing Printer-Resident Fonts

Downloading Host-Resident Fonts

Installing and Maintaining Host-Resident Fonts

How to Install Downloaded PostScript Fonts

How to Install Host-Resident PostScript Fonts

11.  Administering Printers by Using the PPD File Management Utility (Tasks)

12.  Printing in the Oracle Solaris Operating System (Reference)

13.  Troubleshooting Printing Problems in the Oracle Solaris OS (Tasks)

A.  Using the Internet Printing Protocol

Glossary

Index

Creating a New Printer Form

When you want to provide a new form, you must define its characteristics by specifying information for nine required printer characteristics (such as page length and page width) as input to the lpforms command.

The LP print service uses this information to perform the following tasks:

The form name can be anything you choose, as long as it does not contain more than 14 alphanumeric characters or any underscores. The information must use the following format:

Page length: scaled-number
Page width: scaled-number
Number of pages: integer
Line pitch: scaled-number
Character pitch: scaled-number
Character set choice: character-set-name [,mandatory]
Ribbon color: ribbon-color
Comment:
informal notes about the form
Alignment pattern: [content-type] alignment pattern

The optional word [,mandatory], means that the user cannot override the character set choice in the form. The content-type can be given, although this information is optional, with an alignment pattern. If this value is given, the print service uses it to determine, as necessary, how to filter and print the file.

Aside from following two exceptions, the information can appear in any order:

Not all of the information must be given. When you do not specify values, the default values in the following table are assigned. Before running the lpforms command, gather the following information about the new form that is described in this table.

Table 10-7 Default Values for Printer Forms

Value
Default
Description
Page length
66 lines
The length of the form, or the length of each page in a multipage form. This information can be the number of lines, or the size in inches or centimeters.
Page width
80 columns
The width of the form, in characters, inches, or centimeters.
Number of pages
1
The number of pages in a multipage form. The LP print service uses this number with a print filter (if available) to restrict the alignment pattern to a length of one form. See the description of alignment pattern below. If no filter is available, the LP print service does not truncate the output.
Line pitch
6 lines per inch
A measurement of how close lines appear on the form. Line pitch is also called leading.
Character pitch
10 characters per inch
Character pitch is the distance between two lines, from baseline to baseline, measured by either lines per inch or lines per centimeter.

A measurement of how close together characters appear on the form. It is the distance between characters, measured by either characters per inch or characters per centimeter.

Character set choice
Any
The character set, print wheel, or font cartridge that should be used when this form is used. Users can choose a different character set for their own print requests when using this form. Or, you can require that only one character set be used.
Ribbon color
Any
If the form should always be printed using a certain color ribbon, the LP print service can give a mount alert message indicating which color to use.
Comment
(No default)
Any remarks that might help users understand the form. For example, the remarks could indicate the name of the form, its revision, its purpose, or restrictions on its use.
Alignment pattern
(No default)
A sample file that the LP print service uses to fill one blank form. When mounting the form, you can print this pattern on the form to align it properly. You can also define a content type for this pattern so that the print service knows how to print it.

Note - The LP print service does not try to mask sensitive information in the alignment pattern. If you do not want sensitive information printed on sample forms, for example when you align checks, then you should mask the appropriate data. The LP print service keeps the alignment pattern stored in a safe place, where only users logged in as superuser or lp user can read it.


When you have gathered the information for the form, specify it as input to the lpforms command. You should record this information first in a separate file so that you can edit it before specifying it with the lpforms command. You can then use the file as input instead of typing each piece of information separately after a prompt.

How to Create a New Printer Form Definition

  1. On the print server, become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Create a form definition file.

    For a description on creating printer forms, see Creating a New Printer Form. You should save the printer definition in a text file.

  3. Add the form to the LP print service.
    # lpadmin -p printer-name -M -f form-name
  4. Add the form to a print server.

    For instructions, see How to Add a Form.