|
|||
1. Introduction to Printing in the Solaris Operating System 2. Planning for Printing in the Solaris Operating System (Tasks) 3. Setting Up Printing Services (Tasks) 4. Setting Up Printers (Tasks) 5. Administering Printers by Using Solaris Print Manager and LP Print Commands (Tasks) 6. Administering Printers That Use Network Printing Protocols (Tasks) 7. Customizing Printing Services and Printers (Tasks) 8. Administering Character Sets, Filters, Forms, and Fonts (Tasks) Administering Character Sets (Task Map) Administering Print Filters (Task Map) Administering Forms (Task Map) Administering Fonts (Task Map) 9. Administering Printers by Using the PPD File Management Utility (Tasks) 10. Setting Up and Administering Printers From the Desktop (Tasks) 11. Printing in the Solaris Operating System (Reference) 12. Troubleshooting Printing Problems (Tasks) |
Administering FormsA form is a sheet of paper on which information is printed in a predetermined format. Unlike plain paper stock, forms usually have text or graphics preprinted on them. Common examples of forms are company letterhead, invoices, blank checks, receipts, and labels. The term form has two meanings: the physical medium (the paper) and the software that defines a form to the LP print service. The LP print service allows you to control the use of forms. This section provides information about adding, changing, deleting, mounting, and limiting access to forms. Adding, Changing, or Deleting FormsWhen you add a form, you tell the LP print service to include the form in its list of available forms. You also have to supply the information required to describe or define the form. Although you can specify such definitions when you add the form, it helps to create the definitions first and save them in files. You can then change the form definition by editing the file. Note - No form definitions are supplied with the LP print service. To change a form, you must re-add the form with a different definition. The LP print service imposes no limit on the number of forms you can define. However, you should delete forms that are no longer appropriate. Obsolete forms can result in unnecessary processing by the print service. How to Add a Form
Example 8-14 Adding a FormThe following example shows how to add the medical form that uses the medical.fmd form definition. # lpforms -f medical -F /etc/lp/forms/medical.fmd See AlsoBefore the form can be used, one or more printers must be given access to the form. For more information, see How to Limit Printer Access to a Form. How to Delete a Form
Example 8-15 Deleting a FormThe following example shows how to delete the medical form. # lpforms -f medical -x Mounting FormsTo print a form, you must load the paper in the printer and use a command to mount the form. This command notifies the LP print service that print requests submitted to the printer are to be printed using the form definition. If you use one printer for different types of printing, including forms, you should do the following:
When you mount a form, ensure that it is aligned properly. If an alignment pattern has been defined for the form, you can request that the pattern print repeatedly after you have mounted the form. Let the pattern print repeatedly until you have adjusted the printer so the alignment is correct. When you want to change or discontinue using a form on a printer, you must notify the LP print service by unmounting the form. How to Unmount and Mount a Form
Example 8-16 Unmounting a FormThe following example shows the process of unmounting the currently mounted form on the printer luna. # reject luna destination "luna" will no longer accept requests # lpadmin -p luna -M f none # accept luna destination "luna" now accepting requests Example 8-17 Mounting a FormThe following example shows the process of mounting the medical form on the printer luna. # reject luna destination "luna" will no longer accept requests # lpadmin -p luna -M f medical -a -o filebreak # accept luna destination "luna" now accepting requests Tracking FormsThe LP print service helps you track which forms are mounted on each printer. The print service also notifies you when it cannot find a description it needs to print a form. You are responsible for creating form descriptions, and mounting and unmounting form paper in each printer. You complete this task either as part of setting up a printer or in response to alerts from the LP print service. Users can specify the form on which they want a job to print. As superuser, you can mount a specific form, then tell the LP print service that the form is available and on which printer it is mounted. Users can submit print requests specifying a particular form. When the LP print service receives the request, it sends an alert message to root requesting that you mount the form. Defining Alerts for Mounting FormsYou request alerts for mounting forms in the same way that you request other alerts from the LP print service. For general information about alerts, see Setting Up Printer Fault Recovery by Using LP Print Commands. How to Set an Alert to Mount a Form
Example 8-18 Setting an Alert to Mount a FormThis example shows how to set email alerts to occur every 5 minutes for the letterhead form when 10 print requests for letterhead reside in the print queue. # lpforms -f letterhead -A mail -Q 10 -W 5 Example 8-19 Setting a Console Window AlertThis example shows how to set console window alerts to occur every 10 minutes for the letterhead form when 5 requests for letterheadreside in the print queue. # lpforms -f letterhead -A write -Q 5 -W 10 Example 8-20 Setting up No Request AlertsThis example shows how to set no request alerts for the invoice form. # lpforms -f invoice -A none Checking FormsWhen you have defined a form for the LP print service, you can check the form with either of two commands. Which command you choose depends on the type of information you want to check.
If you are not sure about the name of an existing form, you can view the form names by listing the contents of the /etc/lp/forms directory. How to View Information About a Form
Example 8-21 Viewing Information About a FormThe following example shows how to display information about the medical form. # lpforms -f medical -l Page length: 62 Page width: 72 Number of pages: 2 Line pitch: 6 Character pitch: 12 Character set choice: pica Ribbon color: black Comment: Medical claim form The following example shows how to redirect the information about the medical form to a file. This command creates the form definition for the form. This command is useful if a form definition is removed unintentionally. # lpforms -f medical -l > medical.fmd How to View the Current Status of a Form
Example 8-22 Viewing the Current Status of a FormThis example shows how to display the status of the medical form. $ lpstat -f medical form medical is available to you Limiting Access to FormsYou can control which printers and which users have access to some or all of the forms available on the network. For example, you might want only the people in the payroll or accounts payable department to be able to print check forms. In addition, you might want the check forms to be available only on certain printers. For more information, see How to Limit User Access to a Form. To limit printer access to a form, see How to Limit Printer Access to a Form. How to Limit User Access to a Form
Example 8-23 Allowing User Access to a FormThis example shows how to allow only the users nathan and marcia access to the check form. # lpforms -f check -u allow:nathan,marcia Example 8-24 Denying User Access to a FormThis example shows how to deny users jones and smith access to the dental form. # lpforms -f dental -u deny:jones,smith How to Limit Printer Access to a Form
Example 8-25 Allowing Printer Access to a FormThis example shows how to allow the printer luna to access only the medical, dental, and check forms. # lpadmin -p luna -f allow:medical,dental,check Example 8-26 Limiting Printer Access to a FormThis example shows how to deny the printer luna from accessing the medical, dental, and check forms. # lpadmin -p luna -f deny:"medical dental check" |
||
|