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