Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: Advanced User's and System Administrator's Guide > Chapter 6 Configuring and Administering Printing from the Desktop

Printing Concepts

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

Users can invoke printing either by dragging an object, whether it be a file icon or a text selection, onto the printer icon and dropping it there. Alternatively, users can invoke printing by selecting a print command in an application. In each case, the printing proceeds differently.

Printing By Drag and Drop Invocation

When a print request is initiated by dropping a file or a text selection on a printer control, the system proceeds as follows:

  1. The system searches the data-type database for the definition of the object dropped.

  2. If there is a unique print action for the data type (specified using the ARG_TYPE field in the print action), it is used. If no unique print action for the data type is found, the default print action uses dtlp to print the object. For example, if the file is a PostScript. file, the system uses the Print action for PostScript files. (This action is defined in /usr/dt/appconfig/types/<language>/dt.dt.) If you used the Create Action tool for this data type, the print command you entered is the unique print action that will be used to print files with this data type.

  3. The file is ultimately delivered to the printer using the normal UNIX lp printing subsystem.

Printing From CDE Applications

A number of the CDE applications, including the Calendar Manager (dtcm), the Help Manager (dthelp), the Mailer (dtmail), and the Text Editor (dtpad) have built-in support for printing. These applications rely on the services of the X Print Server to accomplish their printing. The X Print Server is simply a normal (video) X Server which has been enhanced to produce output for various types of printers including raster, PCL, and Post Script.

When a print request is initiated from inside a CDE application (for example by selecting the "Print ..." command from the File menu in the Text Editor), the following happens:

  1. The application displays a dialog allowing the user to set generic, application specific, or printer specific printing options.

  2. The application sends instructions to the X Print Server. The instructions include standard X drawing requests enhanced by page and job boundary indicators.

  3. The X Print Server translates the instructions into output appropriate to the target printer. The particular output produced depends upon the capablilities of the X Print Server and the target printer selected.

  4. The X Print Server delivers the print output to the printer using the normal UNIX lp printing subsystem.

To Support Printing From CDE Applications

In addition to the application and the X Print Server, two programs are required to support printing from CDE applications: the Print Dialog Manager (PDM) and the PDM daemon.

Displaying and setting printer-specific printing options are handled in special programs called Print Dialog Managers (PDMs). Each class of printer has its own PDM, which knows about the specific set of options and capabilities that it offers.

A second class of programs called PDM daemons handle the tasks of recognizing the fact that an application wants to display or set printer-specific printing options and starting the correct PDM for the selected printer.

In summary, for printing from CDE applications to proceed successfully you must:

  1. Make sure that the printers are added correctly to your system's configuration.

  2. Make sure that the correctly configured X Print Servers needed to support your printer configuration are running. The default X Print Server for CDE is Xprt.

  3. Make sure that the correctly configured Print Dialog Manager (PDM) daemons needed to support your printer configuration are running. The default PDM daemon for CDE is dtpdmd.

  4. Make sure that the correctly configured Print Dialog Managers (PDMs) needed to support your printer configuration are available. The default PDM for CDE is dtpdm.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.