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