Hewlett-Packard Vancouver Site
HP DeskJet 600, 700 900 & HP 2000 Series PCL Developer’s Guide
Printing History
1.0 Preface and Printing History
2.1 Which printers are covered by this guide1
2.0 About this Developer’s Guide
2.1.1 HP DeskJet 600 Series 630C*, 640C*, and 656C
2.1.2 HP DeskJet 800 Series 840C
2.2.1 Special Note - HP DeskJet 710C, 720C and 820C Series printers
2.2 Special Notes
Table of Contents
3.0 Table of Contents
Preface and Printing History
How This Developer’s Guide Works
10.2 Testing Commands 10.3 Print Modes
10.0 HP PCL Commands
10.7 Printer Diagnostics
10.9 Horizontal Positioning Commands
11.0 Fonts
12.0 HP LaserJet Bitmap Character Definition
11.3 Bitmap Resolution Segment
11.4 Character Enhancement Segment
11.5 Dual-Pitch-Space Char Segment
13.0 Banner Printing
Printer Commands
HP PCL Code Samples
Other Resources for Assistance
4.0.2 The Command Description Page A
setting
4.0.3 Command Name B
1 to maximum supported paper size - Command is ignored for out of
4.0.6 Command Usage Table E
4.0.5 Command Summary D
4.0.7 Command Options F
4.0.8 Command Option Recognition Grid G
4.0.11 Important Point
4.0.10 Detailed Command Description
5.1.3 HP PCL Commands
5.1.1 What are Printer Commands?
5.0 Introduction to HP PCL
5.1 History of HP PCL Printer Language
5.2.2 Parameterized Escape Sequences
5.2 Syntax of Escape Sequences
5.2.1 Two-Character Escape Sequences
Escape Character Parameterized Character
Esc & l 1 O
Termination Character Value Field
Group Character
Page
The Logical Page
Text Area
Page
Page
6.2.1 Current Active Position CAP
6.2 Page Layout
Logical Page
CAP Position
Portrait
Logical Page
7.0 The Print Environment
8.0 Merged Text and Graphics
9.0.3 Priority of Feature Set Commands
9.0.1 Follow Specifications
9.0 Programming Hints
9.0.2 Leverage from Previous Programs
9.0.5 Time Savers
9.0.4 Priority of Commands
4 Avoid using a Start Raster Graphics and End Raster Graphics command on every line. Use these commands at the beginning and end of the graphics image
10.2 Testing Commands
10.0 HP PCL Commands
10.3.1 Transparent Data Mode
Transparent Data Mode - Esc & p #
10.3.3 Display Functions Mode OFF
10.3.2 Display Functions Mode ON
Value
EFFECT
Default - single underline
10.4.1 Enable Underline
10.4 Text Enhancements
Value
# Value
10.4.2 Disable Underline
EFFECT
Value
Disables End-of-Line Wrap
Enables End-of-Line Wrap
Value
EFFECT
10.5 Job Control
10.5.1 Reset Esc E
Enable gray balancing
default enabled or disabled
Disable gray balancing
Gray Balance Default Modes
Dry Timer is off
10.6.2 Dry Timer
Dry timer is on - time set for
Dry Timer Defaults
Value
EconoFast mode selected
EFFECT
10.6.3 Print Quality
EFFECT
Value
Value
EFFECT
4 Move CAP Vertical PCL Units - Esc * p # Y
10.7.1 Self-Test Esc z
10.7 Printer Diagnostics
Value
10.8 Page Control
EFFECT
Paper Size
EFFECT
Value
10.8.2 Page Size
Page size set to that indicated
TABLE 18.Selectable Envelope Sizes
Page Size
TABLE 17.Selectable Card Sizes
EFFECT
Value
10.8.3 Media Source
Load z-fold media banners
EFFECT
Value
10.8.4 Orientation
Portrait
EFFECT
Value
descriptor
10.8.5 Horizontal Motion Index
EFFECT
Value
10.8.6 Vertical Motion Index
Number of 1/48 inch increments
EFFECT
Value
Value
EFFECT
EFFECT
Value
values
Value
Value
lines-per-inch setting
EFFECT
10.8.11 Top Margin
Disables perforation skip mode
10.8.13 Perforation Skip Mode
Enables perforation skip mode
Value
Page
10.9.1 Backspace BS
10.9 Horizontal Positioning Commands
10.9.2 Carriage Return CR
10.9.3 Space SP
10.9.6 Horizontal Tab HT
10.9.5 Formfeed FF
EFFECT
Value
10.9.7 Move CAP Horizontal Decipoints
Moves CAP horizontally by the
EFFECT
Value
Value
EFFECT
This command ignores margins and can move CAP horizontally anywhere within the logical page. Attempts to go outside the logical page will move CAP to the appropriate logical page limit
Value
10.10 Vertical Positioning Commands
EFFECT
10.10.1 Move CAP Vertical Rows
EFFECT
Value
10.10.2 Move CAP Vertical Decipoints
Moves CAP to a new position
EFFECT
Value
10.10.3 Move CAP Vertical HP PCL Units
Moves CAP specified number
Symbol set identification value
10.11.2 Font Symbol Set
10.11 Font Selection
Value
Math-7 same as 0M
HP PCL Commands
HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide
HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide
HP PCL Commands
EFFECT
Value
Value
EFFECT
EFFECT
Value
values
10.11.5 Font Height
Value
Specified characteristics are
EFFECT
10.11.6 Font Style
MATCHING ALGORITHM
“Book” or “text” weight
10.11.7 Font Stroke Weight
Value
EFFECT
EFFECT
Value
10.11.8 Font Selection by ID
Font with indicated ID is
10.12 Downloading Fonts
Font ID - Esc * c # D
10.12.1 Font ID
Value
Value
Download Font - Esc s # W font definition
EFFECT
10.12.2 Download Font
Value
Download Character - Esc s # W Character Definition
EFFECT
Value
EFFECT
Value
10.12.5 Font Control
Delete all fonts temp
10.13.2 Commands Locked Out of Raster Mode
10.13.1 Raster Mode
10.13.3 Commands Allowed in Raster Mode
10.13 Raster Graphics
command processing
Printer returns to text mode
Value
EFFECT
Value
10.13.6 Raster Resolution
EFFECT
graphics data printed at 75 dpi
Value
current resolutiona
EFFECT
10.13.7 Source Raster Width
EFFECT
Value
10.13.8 Y Offset
Cursor is moved specified
Value
10.14 Raster Data Transfer
EFFECT
10.14.1 Transfer Raster by Plane
EFFECT
Value
10.14.2 Transfer Raster by Row/Block
Following specified number of
10.15 Raster Compression
Compressed replacement delta
Value
EFFECT
Method 2 - Tagged Image File Format Encoding TIFF revision
Method 3 - Delta Row Encoding
Replacement count 1
Left offset from the current byte O
The values of the offset have the following definitions
Optional Replacement Count
Command
Replacement Count
Method 9 - Compressed Replacement Delta Row Encoding
Replacement Count
Replacement Count
Control Bit
Offset Count
Seed Row Source Esc * b # S
Value
10.16 Color
EFFECT
10.16.1 Simple Color
Planes per Row
3-Plane CMY Color Palette value =
Color
Data Plane Pattern
4 Plane KCMY Color Palette value =
HP PCL Commands
Planes per Row
Color Printed
EFFECT
Value
size
10.16.2 Foreground Color
Index
Planes per Row
Color
Planes per Row
Color Printed
Planes per Row
Index
format
11.0 Fonts
11.1 Standard Bitmap Font Definition
Format
11.2 Resolution-Specified Bitmap Font Definition
11.2.2 Descriptor Format UBYTE
11.2.3 Symbol Set Type UBYTE
11.2.1 Font Descriptor Size UINT
11.2.5 Style MSB UINT
11.2.4 Font Type UBYTE
11.2.6 Baseline Position UINT
1 +2x4+3x32=105
11.2.7 Cell Width UINT
11.2.8 Cell Height UINT
11.2.11 Symbol Set UINT
Symbol Set Descriptor Field = 0 x 32 + 85 - 64 =
11.2.10 Spacing BOOL
11.2.12 Character Set UINT16
11.2.14 Height UINT
11.2.18 Stroke Weight SBYTE
11.2.15 xHeight UINT
11.2.16 Width Type SBYTE
Typeface Family Value
11.2.19 Typeface LSB/MSB UBYTE
11.2.21 Quality
61+0x512+2x2048=4157
11.2.20 Serif Style UBYTE
11.2.23 Underline Position SBYTE
11.2.22 Placement
11.2.24 Underline Thickness UBYTE
11.2.25 Text Height UINT
11.2.28 Last Code/Number of Chars UINT
11.2.27 First Code UINT
11.2.29 Pitch Extended UBYTE
11.2.30 Height Extended UBYTE
11.2.35 Y Resolution UINT
11.2.34 X Resolution UINT
11.2.31 Cap Height UINT
11.2.32 Font Number UINT
11.2.38 Segment Size
11.2.36 Copyright
11.2.37 Font Scaling Technology
11.3.2 Y Resolution UINT16
11.3 Bitmap Resolution Segment
11.3.1 X Resolution UINT16
11.4.1 Style UINT32
11.4.2 Stroke Weight UINT32
11.4 Character Enhancement Segment
11.4.3 Sizing UINT16
11.5.2 Half-Width-Space Character Code
11.5 Dual-Pitch-Space Char Segment
11.5.1 Full-Width-Space Character Code UINT16
12.0.1 Format UBYTE
12.0 HP LaserJet Bitmap Character Definition
12.0.4 Class UBYTE
12.0.2 Continuation BOOL
12.0.3 Descriptor Size UBYTE
of the character in portrait orientation the first dot row of data corresponds to the first dot row of the character. The end of each row is padded with zero bits so it contains an integral num- ber of bytes
HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide
Class 2 Compressed Bitmap Character Data
HP LaserJet Bitmap Character Definition
12.0.6 Left Offset SINT
12.0.5 Orientation UBYTE
12.0.7 Top Offset SINT
12.0.8 Character Width UINT
12.0.11 Character Data
12.0.10 Delta X SINT
13.0.1 Media Source
13.0 Banner Printing
Esc & l # H
13.0.2 Margins
13.0.3 Command Sequence
13.0.4 Moving to a New Logical Page
13.0.5 Unloading Continuous Media
13.0.6 Power-On with Continuous Media
HP PCL Command
13.0.7 Power-Off with Continuous Media
13.1 Sample HP PCL for a Banner Print Job
Command
Command Line
14.0 HP PCL Code Samples
14.1 Page Formatting Program Example
Command
Command Line
Action
Comment
14.2 Commands Sent to Printer
PCL Codes
14.3 3-Plane Color Graphics
HEX Data Run Length Compression
Description
PCL Codes
14.4 4-Plane Color Graphics
HEX Data Run Length Compression
Description
HEX Data Run Length Compression
PCL Codes
Description
HP PCL Code Samples
Escape
15.0 Printer Commands
Action - Result
Escape
Esc * c # E
16.0 Other Resources for Assistance
http//dsportal.eservices.hp.com/dspp/home/homeDSPPJumpPageIDX
16.1 HP Developer Exchange
16.2 Comments & Feedback