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