Hewlett-Packard Vancouver Site
 Printing History
Preface and Printing History
 Which printers are covered by this guide1
About this Developer’s Guide
 Special Note HP DeskJet 710C, 720C and 820C Series printers
Special Notes
 Table of Contents
 HP PCL Commands
 Fonts
 HP LaserJet Bitmap Character Definition
 Printer Commands
 How This Developer’s Guide Works
Setting
Length set to 66 lines
Length is set, in number
 Command Usage Table E
Command Summary D
Command Options F
Command Option Recognition Grid G
 Important Point
Detailed Command Description
 HP PCL Commands
What are Printer Commands?
Introduction to HP PCL
History of HP PCL Printer Language
 Parameterized Escape Sequences
Syntax of Escape Sequences
Two-Character Escape Sequences
 Esc & l 1 O
 Esc
 Logical Page, Physical
Text Area
 Current Active Position CAP
Layout
 CAP Reference Point
CAP Position
 Print Environment
 Merged Text and Graphics
 Priority of Feature Set Commands
Follow Specifications
Programming Hints
Leverage from Previous Programs
 Time Savers
Priority of Commands
 Programming Hints
 Testing Commands
HP PCL Commands
Control Codes and Special Character Codes
Print Modes
 Display Functions Mode OFF
Display Functions Mode on
Display Functions turned on
Display Functions turned off
 Text Enhancements
 CR = CR, LF LF = LF FF = FF
CR = CR LF = LF FF = FF
CR = CR LF = CR, LF FF =
CR = CR, LF LF = CR, LF FF
 End-of-Line Wrap
Enables End-of-Line Wrap
Disables End-of-Line Wrap
 Job Control
Reset Esc E
 Gray Balance
Gray Balance Default Modes
Printer Control
 Dry Timer Defaults
Dry Timer
 Print Quality
EconoFast mode selected
Normal quality selected
Best quality selected
 Bond paper
Plain paper
Special paper HP Premium
Inkjet Paper
 HP PCL Commands
 Self-Test Esc z
Printer Diagnostics
 Length Line Values
Control
 Size set to that indicated
Size
By value index in the following
Tables
 Value Description
 Print current page source is
Load z-fold media banners
Unchanged
Load from tray
 Portrait
Orientation
Landscape
Reverse Portrait
 Increments
Horizontal Motion Index
Number of 1/120 inch
 Number of 1/48 inch increments
Vertical Motion Index
Between rows
Out of range values
 Sets the number of lines printed
Line Spacing
Per inch
Clear Horizontal Margins
 Sets the left margin to the left
Left Margin
Edge of the specified column
Right Margin
 Top Margin
Lines-per-inch setting
Top margin is set to specified
Number of lines at the current
 Enables perforation skip mode
Disables perforation skip mode
Sets length of the text area,
Lines, from the top margin
 HP PCL Commands
 Backspace
Horizontal Positioning Commands
Carriage Return
Space
 Horizontal Tab
Formfeed
 Moves CAP horizontally by
Move CAP Horizontal Decipoints
Specified number of decipoints
Inch
 Limit
Specified number of columns
Specified number of HP PCL
Units
 HP PCL Commands
 Move CAP Vertical Rows
Vertical Positioning Commands
Moves CAP to the same
Column position on a new line
 Along the vertical axis
Move CAP Vertical Decipoints
Moves CAP to a new position
 Moves CAP specified number
Move CAP Vertical HP PCL Units
HP PCL units along the Y
Axis
 Font Selection by Attribute
Font Symbol Set
Font Selection
 Symbol Set Name
 TIS TAPCI23
 Proportional spacing
Fixed spacing
Inter character spacing for
Current font is set
 Height for current font is set
Font Height
 Applied to font style request
Specified characteristics are
Font Style
 Matching Algorithm
 Ultra thin
Book or text weight
Extra thin
Thin
 Selected
Font Selection by ID
Font with indicated ID is
 Downloading Fonts
Font ID Esc * c # D
 Download Font
Download Font Esc s # W font definition
 Download Character
Character Code
 Permanent, and soft
Delete all fonts temp
Delete all temporary fonts
Temp, permanent, and soft
 Commands Locked Out of Raster Mode
Raster Mode
Commands Allowed in Raster Mode
Raster Graphics
 Command processing
Printer returns to text mode
Start graphics at logical
Left boundary current vertical
 Graphics data printed at 100 dpi
Graphics data printed at 75 dpi
Graphics data printed at 150 dpi
Graphics data printed at 300 dpi
 Source Raster Width
Current resolutiona
Raster region width is set to
Specified number of pixels at
 Cursor is moved specified
Offset
Number of raster lines of vertical
Movement
 Specified number of bytes
Raster Data Transfer
Graphics data for a single plane
Data is set to the printer.
 Following specified number
Transfer Raster by Row/Block
Data bytes sent to the printer as
Data
 Raster Compression
 Has precedence if it is met before the literal run count
Method 2 Tagged Image File Format Encoding Tiff revision
 Method 3 Delta Row Encoding
Replacement count 1 Left offset from the current byte O
 Delta ROW Example
 Row 1 Esc * b 3 m 2 W 00000001
Method 9 Compressed Replacement Delta Row Encoding
Row 2 Esc * b 2 W
Row 3 Esc * b 5 W 000000000000111100100010101010101010
 Control Bit =
Control Bit
 HP PCL Commands
 Single plane K palette
Color
Planes, device CMY palette
Planes, device RGB palette
 White no ink Black
 Black/Yellow Black/Magenta
 Current palette
Foreground Color
Specified by the given index
 Planes per Row Index Color
 Planes per Row Index Color Printed
 Format
Fonts
Standard Bitmap Font Definition
 Resolution-Specified Bitmap Font Definition
 Descriptor Format Ubyte
Symbol Set Type Ubyte
Font Descriptor Size Uint
 Style MSB Uint
Font Type Ubyte
 Cell Width Uint
Baseline Position Uint
Cell Height Uint
Orientation Ubyte
 Spacing Bool
Symbol Set Uint
Character Set UINT16
Pitch Uint
 Height Uint
Stroke Weight Sbyte
XHeight Uint
Width Type Sbyte
 Typeface Family Value
Typeface LSB/MSB Ubyte
 Quality
Serif Style Ubyte
 Underline Position Sbyte
Placement
Underline Thickness Ubyte
Text Height Uint
 Last Code/Number of Chars Uint
First Code Uint
Pitch Extended Ubyte
Height Extended Ubyte
 Cap Height Uint
Resolution Uint
Font Number Uint
Font Name ASC16
 Font Scaling Technology
Copyright
Segment Size
102
 103
Bitmap Resolution Segment
Resolution UINT16
 Character Enhancement Segment
Stroke Weight UINT32
Style UINT32
104
 105
Sizing UINT16
 Full-Width-Space Character Code UINT16
Dual-Pitch-Space Char Segment
Half-Width-Space Character Code
106
 107
HP LaserJet Bitmap Character Definition
Format Ubyte
 Descriptor Size Ubyte
Continuation Bool
Class Ubyte
108
 109
 Class 2 Compressed Bitmap Character Data 110
 Top Offset Sint
Left Offset Sint
Character Width Uint
Character Height Uint
 112
Delta X Sint
Character Data
 113
Banner Printing
Esc & l # H
 Margins
Command Sequence
Moving to a New Logical
Unloading Continuous Media
 Power-Off with Continuous Media
Power-On with Continuous Media
Sample HP PCL for a Banner Print Job
Printing Cutsheet with Z-Fold Media
 116
HP PCL Code Samples
Formatting Program Example
 117
 118
Commands Sent to Printer
 119
14.3 3-Plane Color Graphics
 120
14.4 4-Plane Color Graphics
 121
 122
Printer Commands
 123
 HP Developer Exchange
Other Resources for Assistance
Comments & Feedback
124