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
HP-UX Starbase Device Drivers Manual - Vol2: HP 9000 Series 700 Computers > Chapter 3 Printer Command Language Formatter

Printer Configurations

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

There are two fundamental printer configurations of interest, spooled and non-spooled. The primary difference between the two configurations is that spooling uses the system spooler (lp) in the raw (-oraw option) mode. This section gives a quick overview of these two configurations so that you can focus in later sections on the information you need for your application.

Non-Spooled Operation

In a non-spooled environment, the following Starbase procedures can be used in your programs:

  • bitmap_print, dcbitmap_print, intbitmap_print — do a graphics print from the specified bitmap. Remember that the bitmap can either be a display or a memory buffer created by the Starbase memory driver.

  • file_print — do a graphics print using a file created previously by the bitmap_to_file procedure.

Spooled Operation

In a spooled environment, the HP-UX command pcltrans (see the Starbase Reference manual) is used as a filter to process a Starbase bitmap format file (created previously using bitmap_to_file) into a file of PCL commands for the plotter. This file should then be piped or sent to the lp spooler in raw mode. Spooling can either be done on a single-user computer or the file can be sent to another computer if the printer is shared.

Alternatively the spooler can be accessed using bitmap_print or file_print. With these procedures output can be directed to a special device file or redirected through standard out depending upon parameters in the formatter's configuration file. Spooler access can be accomplished by processing a bitmap or file (using bitmap_print or file_print) with the output going to standard out. Then redirect or pipe the resulting output to the lp spooler in raw mode.

Spooler Conflicts

Assume that you have a color or monochromatic PCL printer connected to your system and you (and possibly others) spool graphics prints to it. If you also use Starbase procedures to do graphics prints, the spooler and Starbase program may conflict, producing interleaved/unusable output. Unusable output may occur in both spooled text and the graphics prints. Thus, simultaneous usage of spooled and non-spooled modes should not be used.

If your printer is used for spooling, it is recommended that all graphics prints be done using spooling.

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