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

Configuration Files

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Configuration files store information about the printer. For example:

  • Resolution

  • Page size

  • Pixel expansion, etc.

Storing printer information in a configuration file is done as a convenience so that you don't need to type in this information each time you use the bitmap_print or file_print procedures. When you use these procedures, you only need to provide the pathname of the configuration file.

NOTE: All parameters must be present and in the exact order shown. If parameters are missing or incorrect an error will be issued and formatter action will be terminated.

The parameters in the configuration file are :

ENABLE STANDARD OUT

If TRUE, output goes to standard out regardless of the printer device file specified in the next parameter. If FALSE, output goes to the special device file or file specified in the next parameter.

PRINTER DEVICE FILE

Specifies the special device file for the printer. This parameter is read but ignored if standard out enable is TRUE.

PRINT METHOD

Specifies color, color2, primary (red, green, blue, cyan, magenta, yellow, black, white), gray scale, or monochromatic (black and white). This parameter has allowable values of: color, color2, primary, gray, grey, mono, and monochromatic.

If PRINT METHOD is color, each pixel is converted to an appropriate color. If print method is color2, each pixel is converted to an appropriate color plus a random noise increment value.

If PRINT METHOD is primary then each pixel is converted to the nearest primary color.

If PRINT METHOD is gray (or grey), each RGB pixel is converted to an appropriate gray scale value.

If PRINT MODE is mono (or monochromatic), each nonzero value RGB pixel is rendered black.

NOTE: Monochromatic-only formatters map color to gray and primary to monochromatic. That is, the appropriate monochromatic mode will automatically be chosen.
PIXEL EXPANSION

Indicates the expansion for each pixel on the bitmap and ranges from 1 to 8. For example, to expand each pixel of the bitmap to a 3×3 cell, the expansion is set to 3.

RESOLUTION

Indicates resolutions in dots/inch. This is printer dependent. For example, the HP 3630A has an available graphics resolution of 180 dots/inch, while the LaserJet and LaserJet Plus printers have four resolutions as follows:

  • 75 dots/inch

  • 100 dots/inch

  • 150 dots/inch

  • 300 dots/inch

Note that this parameter and the subsequent page_width and page_length parameters are used to determine the output "page" for clipping purposes.

SEND RESOLUTION

If true, specifies that the graphics resolution escape sequence will be sent to the output file (printer). If false, no graphics resolution escape sequence will be sent. This parameter should normally be set to true unless special circumstances exist (such as spooling).

PRINT START POSITION

If this parameter is "current", raster graphics rows start at the current text cursor position. If this parameter is "margin", raster graphics rows start at the left graphics margin. When this parameter is margin, a formfeed is sent to the printer at the completion of the graphics data transfer. If this parameter is current, no formfeed is sent upon completion of the graphics data transfer. Note that the current parameter is only useful for printers (such as the LaserJet or SprintJet) which implement this capability of PCL.

PAGE WIDTH

Specifies the width of the printable graphics area on the page in inches.

PAGE LENGTH

Specifies the length of the printable graphics area on the page in inches.

The symbol "#" in configuration files starts a comment and is operative for the remainder of the line.

Configuration File Template

A configuration file template for color pcl printers is provided as file[19]:

formatters〉/pcl/cfg.ctmplt

This template contains values appropriate for the HP 3630A printer. A configuration file template for monochromatic PCL printers is provided as file:

formatters〉/pcl/cfg.template

A following section details parameter values for supported Hewlett-Packard printers which you may wish to refer to in deciding values for particular fields of your configuration file. Note that parameters are position sensitive. That is, each parameter is required to be present in the form and order listed.

Example Configuration File[20]

#----------------------------------------------------------------
# ***** Example configuration file for a color PCL printer *****
#----------------------------------------------------------------
TRUE
dev〉/null
color
2
180
TRUE
current
8.0
10.5


[19] The actual path names of directories in angle brackets depend on the file system structure. See the Graphics Administration Guide for details.

[20] The actual path names of directories in angle brackets depend on the file system structure. See the Graphics Administration Guide for details.

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