HP Deskjet 600 Developer's Manual

Deskjet 600, 700, 800, 900 & hp 2000 series.
Hide thumbs
HP DeskJet 600, 700, 800,
900 & HP 2000 Series
PCL Developer's Guide
Hewlett-Packard Vancouver Site
To aid in HP PCL printer driver development
for HP DeskJet 600/700/800/900 & HP 2000
Series printers

Advertising

   Also See for HP Deskjet 600

   Related Manuals for HP Deskjet 600

   Summary of Contents for HP Deskjet 600

  • Page 1

    HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide Hewlett-Packard Vancouver Site To aid in HP PCL printer driver development for HP DeskJet 600/700/800/900 & HP 2000 Series printers...

  • Page 2: Preface And Printing History

    Edition 6 December 1999, Edition 6.1 September 2001 © Copyright 1995, 1996, 1997, 1998, 1999, 2001 by Hewlett-Packard Company 18110 S.E. 34th Street, Vancouver, WA 98683, USA HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 3: About This Developer's Guide, Which Printers Are Covered By This Guide, Hp Deskjet 600 Series

    2.0 About this Developer’s Guide Which printers are covered by this guide Throughout this HP PCL Developer’s Guide you will see printer names referenced. Here is a list of actual names and the “Series” names used throughout this guide. 2.1.1...

  • Page 4: Special Notes, Special Note - Hp Deskjet 710c, 720c And 820c Series Printers

    HP DeskJet 810C. Note that the HP DeskJet 895Cse and HP DeskJet 895Cxi are both part of the HP Desk- Jet 895C Series family and are NOT derived from the HP DeskJet 890C Series.

  • Page 5: Table Of Contents

    6.2 Page Layout 18 6.2.1 Current Active Position (CAP) 18 6.2.2 CAP Reference Point 19 7.0 The Print Environment 20 8.0 Merged Text and Graphics 21 9.0 Programming Hints 22 HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 6: Table Of Contents

    10.8.12 Text Length 47 10.8.13 Perforation Skip Mode 47 10.9 Horizontal Positioning Commands 49 10.9.1 Backspace 49 10.9.2 Carriage Return 49 10.9.3 Space 49 10.9.4 Linefeed 49 HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 7: Table Of Contents

    11.1 Standard Bitmap Font Definition 90 11.2 Resolution-Specified Bitmap Font Definition 91 11.2.1 Font Descriptor Size (UINT) 92 11.2.2 Descriptor Format (UBYTE) 92 11.2.3 Symbol Set Type (UBYTE) 92 HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 8: Table Of Contents

    11.5 Dual-Pitch-Space Char Segment 106 11.5.1 Full-Width-Space Character Code 106 11.5.2 Half-Width-Space Character Code 106 12.0 HP LaserJet Bitmap Character Definition 107 12.0.1 Format (UBYTE) 107 12.0.2 Continuation (BOOL) 108 HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 9: Table Of Contents

    14.3 3-Plane Color Graphics 119 14.4 4-Plane Color Graphics 120 15.0 Printer Commands 122 16.0 Other Resources for Assistance 124 16.1 HP Developer Exchange 124 16.2 Comments & Feedback 124 HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 10: How This Developer's Guide Works, Page Length, The Command Description, Command Name

    4.0.2 The Command Description Page Since some commands are not recognized by all HP DeskJet printers, or some family mem- bers do not recognize all options for a particular command, it is necessary to indicate which printers do respond to each command, and how each printer treats each command option.

  • Page 11: Escape Sequence, Command Summary, Command Usage Table, Command Options, Command Option Recognition Grid

    All command options for a command are listed in the column of the Command Usage Table, which is labeled "Value". You should note that even though a particular member of the HP DeskJet printer family is indicated as recognizing a command, that printer may not recognize, and therefore not respond to, all listed command options.

  • Page 12: Detailed Command Description, Important Point

    Any information noted in these areas should be read carefully before you use the asso- ciated command. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 13: Introduction To Hp Pcl, History Of Hp Pcl Printer Language, What Are Printer Commands

    HP has evolved both the definition and implementations of the HP PCL printer lan- guage to provide the optimal price and performance balance. HP PCL 3 continues to lead with enhancements to the HP PCL printer language in order to deliver powerful technology advances.

  • Page 14: Syntax Of Escape Sequences, Two-character Escape Sequences, Parameterized Escape Sequences

    Introduction to HP PCL Once an HP PCL command sets a parameter, that parameter will remain set until that HP PCL command is repeated with a new value, the printer is reset to its user default environment, or another command makes a change. For example, if you send the printer a command to set line spacing to 3 lines/inch, each page will print 3 lines/inch until the printer receives a Line Spacing or VMI command or the printer is reset.

  • Page 15

    8 ½ x 11 inches. Esc & l 0 O and Esc & l 2 A These two escape sequences can be combined into one escape sequence as follows: HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 16

    The printer commands are performed in the order that they are combined (from left to right). Be sure to combine commands in the order that they are to be performed. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 17: Logical Page, Physical

    6.0 The Page Logical Page, Physical Page The HP PCL printer language distinguishes between the physical page and the logical page. The physical page is the actual sheet of paper. Its size is determined by the size of the media installed in the printer.

  • Page 18: Page Layout, Current Active Position (cap)

    CAP position (0,0) is at the left edge of the logical page at the current top margin position. Since the top margin can be changed using a printer command, the physical location of the HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 19: Cap Reference Point

    Graphics, however, can be printed at (0,0) because they do not move above CAP. Graphics begin at the vertical level specified by CAP and then move downward on the page from that point. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 20: The Print Environment

    Starting your print job with the Reset command (Esc E) is the recommended procedure, since the escape sequence resets all programmable features to their default values. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 21: Merged Text And Graphics

    Merged Text and Graphics 8.0 Merged Text and Graphics The process for merging text and graphics with the HP DeskJet 600/800/900 & HP 2000 Series printers in both portrait and landscape orientation is the same as the landscape orienta- tion method for the HP DeskJet 520, 540, 550C, and 560C Series printers, described in the HP DeskJet 500 Series Technical Reference Guide.

  • Page 22: Programming Hints, Follow Specifications, Leverage From Previous Programs, Priority Of Feature Set Commands

    If you have previously used HP PCL commands to create printer programs, you may be able use most of those same commands for the HP DeskJet 600/800/900 & HP 2000 Series print- ers. This is especially true if you have programmed for other HP DeskJet printers. Reusing previously developed code can save you a significant amount of time since you do not have to start a development effort from scratch.

  • Page 23: Priority Of Commands, Time Savers

    You do not need to specify leading and trailing zeroes. The HP DeskJet 600/800/900 & HP 2000 Series printers will compensate if you do not include zeros that occur at the end of an escape sequence. For example, if you want to specify 10 pitch during a font selec- tion sequence, simply specify 10, rather than 0010.00.

  • Page 24

    Avoid setting top margin or text length to values outside of the printable area. This may cause data loss. When using both the top margin and text length commands, the top margin command should be sent before the text length command HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 25: Control Codes And Special Character Codes, Escape, Testing Commands, Print Modes, Transparent Data Mode

    Testing Commands Transparent Data Mode, and Display Functions modes (both of them) are used for testing pur- poses, to allow you to print the actual setup strings rather than having HP PCL actually inter- pret and execute them. You can use either Print Modes -or- the Display Functions Mode On and Off commands - whichever is more intuitive in your programming environment.

  • Page 26: Display Functions Mode On, Display Functions Mode Off

    Z is received, the characters for the next sequence are printed, and Display Function Mode is disabled. If Display Function Mode is OFF when Esc Z is received, no operation is performed. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 27: Text Enhancements, Enable Underline

    The underline distance and height is defined in the font descriptor. In the HP DeskJet implementation of “floating” underline, each font defines the thickness of the underline character and its position relative to the baseline.

  • Page 28: Disable Underline, Line Termination

    Jet 600/800/900 & HP 2000 Series printers, the move is not underlined. HP DeskJet 500 Series printers use a value (#) of 255 to disable underlining. HP DeskJet 600/800/900 & HP 2000 Series printers select Default for values over 4 or below 0.

  • Page 29: End-of-line Wrap

    When end-of-line wrap is disabled, a character or space that would move CAP to the right of the right margin is not printed, and CAP is set to the right margin. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 30: Job Control, Reset

    Since control panel settings can override the factory defaults, Esc E uses the control panel settings as the default values. The SPACE character is not considered a printable character with respect to CAP. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 31: Printer Control, Gray Balance

    The default for the HP DeskJet 550C is 2 (disable gray balancing). The defaults for the HP DeskJet 540 and HP DeskJet 600 printers are Print Mode and Media Type dependent - as shown in the following table. Other HP DeskJet printers do not require gray balancing, as the gray balance function is built into the Media Type/Print Quality commands.

  • Page 32: Dry Timer

    Dependence on the command should be removed from your application. The HP DeskJet 600/800/900 & HP 2000 Series printers use the following values as Dry Timer defaults when Media Type and Print Quality commands are used:...

  • Page 33: Print Quality

    This command closes and prints the current page, and moves CAP to the top of form at the left margin on the next physical page. After receiving the Print Quality command, HP DeskJet 600/800/900 & HP 2000 Series printers ignore Font Quality (Primary) , Font Quality (Secondary) , Raster Graphics Quality , and Mechanical Print Quality commands until a Reset command or an equiv- alent device reset occurs.

  • Page 34: Media Type, Unit Of Measure

    If printable data has been sent, the page is printed and CAP moves to the top of form at the left margin of the next physical page. For HP DeskJet 600/800/900 & HP 2000 Series printers, the specified media type will affect output resolution, depletion, shingling, gray balancing, and dry time.

  • Page 35

    Out-of-range values are mapped to the supported value with the minimum relative error. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 36: Printer Diagnostics, Self-test

    In general, this command should not be used in an application. It is intended as a diagnostic tool for developers and support staff. The HP DeskJet 600/800/900 & HP 2000 Series printers provide several diagnostic print outs that are user-accessible via the printer front panel.

  • Page 37: Page Control, Page Length

    (lpi) times the length of the physical page. For example, US Letter size paper is 11 inches; therefore, 6 x 11 = 66. Page Length Line Values Paper Size 6 lpi 8 lpi Letter Legal Executive HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 38: Page Size

    HP PCL Commands HP DeskJet maximum page length is 14 inches for the HP DeskJet 600/800/900 & HP 2000 Series printers. This command must be sent at the beginning of a page prior to any printable data; other- wise, when the command is sent, the current page is closed and printed.

  • Page 39

    Since the logical page is defined to extend from the top and bottom edges of the physical page, this command also sets logical page length. TABLE 16. Selectable Sheet Media Sizes for HP DeskJet 600/800/900 & HP 2000 Series printers Value Page Description...

  • Page 40: Media Source

    To minimize the unprintable region on custom size media for the HP DeskJet 600/800/900 & HP 2000 Series printers, t, the application should send the length of the custom page using the Page Length ( Esc & l l # P ) command.

  • Page 41: Orientation

    This can result in clipping if CAP is not positioned to take this into account. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 42: Horizontal Motion Index

    For proportionally-spaced fonts, the HMI may affect only the space character. If the space character glyph exists, CAP moves the height (x 112%) of the space character. Otherwise the CAP moves according to the HMI. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 43: Vertical Motion Index

    If the Page Length (Esc & l # P) command follows an VMI change, physical page size is recalculated. Depending on the VMI modification, the printer may request a different page size. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 44: Line Spacing, Clear Horizontal Margins

    Right Margin = right bound of the logical page. This command is considered to be obsolete, and is listed for backward compatibility only. Do not use this command in new code, as subsequent HP DeskJet printers may not sup- port the command.

  • Page 45: Left Margin, Right Margin

    Characters whose cells overlap with the right margin are not printed unless end-of-line wrap is enabled: then the character prints at the left margin on the next line. Attempts to set the right HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 46: Top Margin

    Since this command defaults text length, it should precede the Text Length ( Esc & l # F ) command. HP DeskJet printers default to 1/2” with perforation skip mode on, and 0” with perforation skip mode off. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 47: Text Length, Perforation Skip Mode

    If perforation skip is enabled, text length sets the bottom margin. Printing ends at the specified text length, and then starts again at the top margin of the next page. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 48

    Disabling perforation skip may cause text outside of the printable area to be lost. To pre- vent this, perforation skip should be enabled. Changing perforation skip mode defaults top margin and text length. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 49: Horizontal Positioning Commands, Backspace, Carriage Return, Space, Linefeed

    <BS>. Multiple backspaces each move back the distance of the last printable char- acter or space. HP DeskJet 600/800/900 & HP 2000 Series printers backspace using only the last propor- tional character width. The resulting cursor relocation is therefore not a fixed constant.

  • Page 50: Formfeed, Horizontal Tab

    Tabs do not cause lines to be wrapped if end-of-line-wrap mode is enabled. HMI determines current column width. If HMI is changed, the physical location of each tab stop moves. HT has no effect if the HMI is 0. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 51: Move Cap Horizontal (decipoints)

    Devices not having an integral number of decipoints-to-dots should implement fractional deci- points for dot addressing. HP DeskJet 600/800/900 & HP 2000 Series printers use 2 fractional digits and truncate to 1/3600-inch units. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 52: Move Cap Horizontal (columns), Move Cap Horizontal (hp Pcl Units)

    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. HP DeskJet 600/800/900 & HP 2000 Series printers use 2 fractional digits and truncate to 1/3600-inch units. 10.9.9...

  • Page 53

    Attempts to go outside the logical page will move CAP to the appropriate logical page limit. HP DeskJet printers prior to the HP DeskJet 600 Series printers use 1/300”. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 54: Vertical Positioning Commands, Move Cap Vertical (rows)

    Negative relative positioning allows movement above the top of form, up to the limit of the logical page or the top of the physical page. After power on or reset, CAP moves to the top of form, if not already there. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 55: Move Cap Vertical (decipoints)

    After power on or reset, CAP moves to the top of form, if not already there. Devices not having an integral number of decipoints-to-dots should implement fractional deci- points for dot addressing. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 56: Move Cap Vertical (hp Pcl Units)

    CAP moves an absolute distance from the top margin. The current size, in units-per-inch, of a HP PCL Unit is specified by the Units of Measure (Esc & u # D) command. Otherwise, the unit-per-inch for HP PCL movement defaults to 1/300 inch.

  • Page 57: Font Selection, Font Selection By Attribute, Font Symbol Set

    ID is the upper-case ASCII characters “A” through “Z”, except for “X”. Symbol sets with IDs of “X” can only be selected with the Font ID. “Q” is used with HP “Specials” symbol sets and not recommended for general use. “Y” is used for barcode symbol sets.

  • Page 58

    HP PCL Commands The following table lists printer-supported symbol sets and symbol set IDs for the HP DeskJet 600/800/900 & HP 2000 Series printers. Symbol Set Name Symbol Set Name Math-7 (same as 0M) ISO 21: German Line Draw-7 (same as 0L)

  • Page 59

    Matrix 20f5 Barcode PC-8, Code Page 437 Interleaved 2 of 5 Barcode PC-8 D/N, Danish/Norwegian CODABARBarcode PC-850, Multilingual MSI/Plessey Barcode Pi Font Code 11 Barcode UPC/EAN Barcode USPS ZIP HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 60: Font Spacing, Font Pitch

    > 0.0 - valid to 2 decimal places - Command is ignored for out of range values Designates the horizontal spacing of a fixed-space or dual-fixed space (bitmap or scalable) font in characters per inch (cpi). HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 61: Font Height

    Height is ignored when selecting a fixed space scalable font; but the value is saved in the font select table and available when a proportional font is selected. If no font within .25 points is available, HP DeskJet selects the next smaller height. If no smaller height is available, the next larger height is selected.

  • Page 62: Font Style

    Italic Alternate Italic Reserved Value (#) = Width Normal Condensed Compressed or extra condensed Extra compressed Ultra compressed Reserved Extended or expanded Extra extended or extra expanded HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 63

    In some HP PCL machines, the style word may be an operator: slanting, condensing, expand- ing, outlining, and shadowing operations are all theoretically possible. For example, if italic is unavailable, slant may be added to the upright face.

  • Page 64: Font Stroke Weight

    Many typefaces were designed for advertising, and a “medium” was used to describe the stan- dard treatment. Later, additional treatments were designed for text use. Therefore, the type- face treatment designation “medium” may not always take a HP PCL value of 0. This value may be assigned to “book” or “text” instead.

  • Page 65: Font Selection By Id

    (as listed in the font select table). For shared or multi-user environments, HP recommends that soft fonts be selected by attribute rather than ID. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 66: Downloading Fonts, Font Id

    Note that the HP DeskJet format soft fonts are designed for use with the HP DeskJet 500 Series printers. The following sections discuss the format for the HP LaserJet format soft fonts, which is the type used for the DeskJet 600 Series and 850/855 Series printers.

  • Page 67: Download Font

    Missing data and “reserved” fields should be set to 0; excess data should be discarded. The two font definitions recognized by the HP DeskJet 600, 850, 870, 890, & HP 2000 Series printers are provided in the section of this guide entitled “Fonts”.

  • Page 68: Character Code, Download Character

    (Esc ( s # W) command with a valid character descriptor and data, a character is defined in the code location corresponding to the ASCII lowercase “g”. HP DeskJet 600, 830, 895, 900 & HP 2000 Series printers support a range of 0 - 65535. After downloading the font definition, each character in the font must be defined.

  • Page 69: Font Control

    Manipulates fonts and characters designated by Font ID and Character Code. If the primary or secondary font is deleted, a new primary or secondary font is automatically selected from the remaining fonts. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 70: Raster Graphics, Raster Mode, Commands Locked Out Of Raster Mode, Commands Allowed In Raster Mode

    HP PCL Commands 10.13 Raster Graphics The following HP PCL commands apply to the printing of raster graphic images on HP Desk- Jet 600/800/900 & HP 2000 Series printers. 10.13.1 Raster Mode The Start Raster (Esc * r # A) command begins a restricted state called raster mode. Raster mode locks out commands that would affect rendering of the graphics image.

  • Page 71: Start Raster, End Raster

    It performs the following functions: Resets the seed row to zeros. Re-enables commands locked out of raster mode by Esc * r # A. Defaults the compression method to 0. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 72: Raster Resolution

    75, 100, 150, 300, 600 - Command is ignored for other values a. Only black raster data can print at 600 dots per inch on HP DeskJet 600/800/900 & HP 2000 Series printers. Defines the resolution at which graphics data is to be printed To assure that the graphic is printed without data loss, an unsupported resolution is mapped to the next higher supported resolution.

  • Page 73: Source Raster Width

    0 to 32767 - (clamped to right logical page boundary minus left graphics margin) a. HP DeskJet 600, 810, 830, 850, 895, 900 & HP 2000 Series printers round source raster width values that are not a multiple of 8 to the next higher multiple of eight (i.e., the next byte boundary).

  • Page 74: Y Offset

    This command zero-fills the offset area. For Delta Row compression (methods 3 and 9), this command zeros the seed row. Movement by this command is based on the graphics resolution. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 75: Raster Data Transfer, Transfer Raster By Plane

    The amount of data sent varies from plane to plane and is independent of raster width. Planes whose data specifies a row shorter than the raster width are zero-filled. Empty planes can be sent by Esc * b 0 V. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 76: Transfer Raster By Row/block

    The plane pointer in a multi-plane row is reset to 1 after the data is transferred. The data field is interpreted according to the current compression method (Esc * b # M). HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 77: Raster Compression, Compression Method

    0 through 255. A count of 0 means the byte pattern occurs once and is not repeated; a count of 1 means the pattern occurs twice; and a count of 255 means the pattern occurs 256 times. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 78

    The following examples show how methods 0 - 2 can be used to send the raster row below: Byte Number Bits 01010101. 01010101. 01010101. 01010101. 01000001. 01010100. 01010100 ASCII Compression method 0 - Unencoded Esc*r1 A Esc*b0m7WUUUUATT Esc*rC HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 79

    6, and a replacement count of 5 replaces bytes 7 through 11. The new current byte is 12. A second offset of 3 skips bytes 12, 13, and 14; byte 15 is the next byte to be replaced. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 80

    If the last byte indicated by the transfer command value is a control byte, it is ignored. There- fore, Esc * b 1 W does not affect the seed row, but causes the previous row to be repeated. DELTA ROW EXAMPLE: HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 81

    Data Command Optional Offset Optional Replacement Count Bytes Byte Bytes Bytes The command byte itself has three parts: Control Bit Offset Count Replacement Count HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 82

    As when the control bit is 0, optional offset bytes and replace- ment bytes may be added. Control Bit = 1 Offset Count Replacement Count HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 83

    The Magenta plane would use the Cyan plane from the current row as a seed plane. The Yellow plane would use the Magenta plane from the current row as a seed plane. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 84: Color, Simple Color

    (Esc * b # V) as well as by row (Esc * b # W). The pixel encoding mode is indexed pla- nar.Creates a fixed-size palette whose color specification cannot be modified. The HP DeskJet 600 printer, which is a single-pen device, maps a value parameter of -4 to 3-plane CMY, converting K data to composite black.

  • Page 85

    HP PCL Commands Row Pointer. The HP DeskJet 600/800/900 & HP 2000 Series printer firmware will com- plement the data and fire the pen as required to generate the appropriate CMY color. The RGB palette below shows both the RGB data values sent to the printer and the corre- sponding color printed.

  • Page 86

    4 Plane (KCMY) Color Palette (value = -4) Planes per Row Color Printed Data Plane Pattern White Yellow Magenta Cyan Green Blue Composite Black Black Black/Yellow Black/Magenta Black/Red Black/Cyan Black/Blue Black/Green Black HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 87: Foreground Color

    Out of range values are mapped in to a new index via modulo (palette size) All HP PCL marking entities utilize foreground color, which is selected by Esc * v # S from the current palette. Sets the foreground color to the specified index of the current palette.

  • Page 88

    Blue Yellow Green Composite Black TABLE 60. Three Plane (RGB) Color Palette Planes per Row Index Color Composite Black Green Yellow Blue Magenta Cyan White (no ink) HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 89

    Planes per Row Index Color Printed White (no ink) White (no ink) Cyan Black Magenta Black Blue Black Yellow Black Green Black Black Composite Black Composite Black HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 90: Standard Bitmap Font Definition, Fonts

    A soft font is composed of a Font Definition (font header) and a series of character definitions. Both are described below. In order to use the standard bitmap font definition on a HP DeskJet 600 or 85X Series printers, the Font Descriptor Size field must be set to exactly 64. The First Code and Last Code fields must also contain valid information.

  • Page 91: Resolution-specified Bitmap Font Definition

    Text Height Text Width First Code Last Code Pitch Extended Height Extended Cap Height 44-46 Font Number 45-47 48-62 Font Name 49-63 X Resolution Y Resolution Copyright (optional) HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 92: Font Descriptor Size (uint), Descriptor Format (ubyte), Symbol Set Type (ubyte)

    20 Resolution-Specified Bitmap Unrecognized values invalidate font creation. HP DeskJets prior to the HP DeskJet 600 Series use a value of 9 for landscape fonts or fonts larger than 18 points; all other HP DeskJet fonts use a value of 5.

  • Page 93: Font Type (ubyte), Style Msb (uint)

    Structure (style word partial sum multiplied by 32) 0 - Solid 1 - Outline 2 - In-line 3 - Contour, Edge effects 4 - Solid with shadow HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 94: Baseline Position (uint), Cell Width (uint), Cell Height (uint), Orientation (ubyte)

    2 = reverse portrait (180 degrees counterclockwise) 3 = reverse landscape (270 degrees counterclockwise) HP DeskJet 600 and 85X Series printers will rotate the fonts to match the paper’s physical coordinate system for various paper sizes. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 95: Spacing (bool), Symbol Set (uint), Character Set (uint16), Pitch (uint)

    Specifies the type of font spacing. Fixed spacing is 0; proportional spacing is l; dual-fixed spacing is 2. HP DeskJet printers prior to the HP DeskJet 600 Series treat values other than 0 or 1 as 1, and require that landscape fonts have fixed spacing.

  • Page 96: Height (uint), Xheight (uint), Width Type (sbyte), Style Lsb (ubyte), Stroke Weight (sbyte)

    3 for a bold font, and -3 for a light font. Value Stroke Weight Ultra thin Extra thin Thin Extra light Light Demi-light Semi-light Medium, Book, or Text Semi-bold Demi-bold Bold Extra bold HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 97: Typeface [lsb/msb] (ubyte)

    Specifies the HP typeface number of the font. Three versions of this field are used: the obso- lete single-byte version for older fonts, the version used by HP DeskJet 500 and HP LaserJet III printers, and the new HP LaserJet 4 version (also used by the HP DeskJet 600 and 85X Series printers.

  • Page 98: Serif Style (ubyte), Quality

    512, the printer uses the full 16-bit typeface word. PROCEDURE: Typeface Family = Typeface Base Value + (Version x 512) + (Vendor x 2048) The HP typeface number for Agfa’s Dom Casual typeface is 4157 (vendor value=2, version value=0, and type- face value = 61). 61+(0x512)+(2x2048)=4157 11.2.20...

  • Page 99: Placement, Underline Position (sbyte), Underline Thickness (ubyte), Text Height (uint), Text Width (uint)

    Specifies the font’s average lowercase character width (it can be a weighted average). Bitmap Font - Specified in quarter-dots. Scalable Font - Specified in design window units (defined in the Scale Factor field). HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 100: First Code (uint), Last Code/number Of Chars (uint), Pitch Extended (ubyte), Height Extended (ubyte)

    Pitch and Pitch Extended fields is provided in the Pitch field description. Scalable Font - This field is set to zero. HP DeskJet 500 Series printers ignore this field. The HP DeskJet 600 and 85X Series printers do not 11.2.30...

  • Page 101: Cap Height (uint), Font Number (uint), Font Name (asc16), X Resolution (uint), Y Resolution (uint)

    Pitch Extended field (refer to the Pitch field example). Scalable Font - This field is ignored and should be set to zero. HP DeskJet 500 Series printers ignore this field. The HP DeskJet 600 and 85X Series printers do not.

  • Page 102: Copyright, Font Scaling Technology, Segment Size

    Using a value of 254 for bitmap fonts reserves the lower values for other font scaling technolo- gies as they evolve. 11.2.38 Segment Size The Segment Size field of a Format 16 font is 32 bits in length. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 103: Bitmap Resolution Segment, X Resolution (uint16), Y Resolution (uint16)

    11.3.2 Y Resolution (UINT16) In resolution-specified bitmap fonts, this field specifies the resolution of the font in the Y dimension in dots per inch. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 104: Character Enhancement Segment, Style (uint32), Stroke Weight (uint32)

    14- 31 reserved 11.4.2 Stroke Weight (UINT32) This field specifies the stroke weight (thickness of the font character strokes) for the printer to apply to the font. Bolding Lightening HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 105: Sizing (uint16)

    2 X dimension 2 Y dimension 12 - 15 reserved HP DeskJet 600, 700, 800 and HP 2000 Series printers support only 0.5 X/Y, 1.5 X/Y, and 2 X/Y. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 106: Dual-pitch-space Char Segment, Full-width-space Character Code, Half-width-space Character Code

    This field contains the character code for a full-width space character (for two-byte character sets). 11.5.2 Half-Width-Space Character Code This field contains the character code for a half-width space character (for one-byte character sets). HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 107: Format (ubyte), Hp Laserjet Bitmap Character Definition

    HP LaserJet Bitmap Character Definition 12.0 HP LaserJet Bitmap Character Definition The format for the HP LaserJet bitmap character definition and continuation block is shown below. Format is set to 4, and Descriptor Size is set to 14. Byte 15 (MSB) 8...

  • Page 108: Continuation (bool), Descriptor Size (ubyte), Class (ubyte)

    The data is grouped in dot rows describing a one-dot high strip of the character from left to right in the direction of the printer’s raster scan. The dot rows are organized from top to bottom HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 109

    0 (meaning there are none of the opposite type of dots), followed by a byte containing the count of the remaining dots of the current type. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 110

    *Byte alignment is necessary only for raster data (i.e., not for compressed raster data). Uncompressed - 60 bytes Compressed - 25 bytes Class 2 Compressed Bitmap Character Data HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 111: Orientation (ubyte), Left Offset (sint), Top Offset (sint), Character Width (uint), Character Height (uint)

    (i.e. this value is orientation depen- dent). The left and top offsets locate the character reference point about CAP. HP DeskJet 600 and 85X Series printers recognize a range of -16384 to 16384. 12.0.7 Top Offset (SINT) Bitmap fonts only.

  • Page 112: Delta X (sint), Character Data

    Bitmap fonts only. Specifies the number of quarter-dot units (radix dots) by which the horizon- tal position within the HP PCL logical page coordinate system is incremented after printing the character. If the value field is negative, the value is set to 0. This value is used by the printer only when the font is proportionally spaced.

  • Page 113: Banner Printing, Media Source

    13.0.1 Media Source Esc & l # H The HP DeskJet 680 and 690 Series printers add support for sources -1 (z-fold) and 1 (Tray 1, cut sheet). Default media source is Tray 1. Note that the value used for the variable parameter in the command (“#”), like the rest of the command, is an ASCII character string.

  • Page 114: Margins, Command Sequence, Moving To A New Logical, Unloading Continuous Media

    Since raster graphics moves are clipped to the current logical page, it is necessary to explicitly move to a new page once the current page is filled. As shown in the HP PCL example on the following page, this may be accomplished by sending a form feed (followed by the appropriate cursor positioning).

  • Page 115: Power-on With Continuous Media, Power-off With Continuous Media, Printing Cutsheet With Z-fold Media

    Spaces are included in the escape sequences in the preceding example to enhance readability. Spaces should not be included in the actual escape sequences sent to the printer. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 116: Page Formatting Program Example, Hp Pcl Code Samples

    Specify Page Length 11 in. X 8 lpi = 88 lines Esc & l 6 E Set Top Margin 3/4 in. margin X 8 lpi = 6 lines HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 117

    Esc (s 0p 24h 6v 0s 0b Sets font to Letter Gothic Footer Text Reset Printer Esc E Clears partially composed pages; returns printer to default settings. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 118: Commands Sent To Printer

    CAP into position for the main text. Likewise, you can set the printer side margins to 0. You can then use horizontal positioning commands to position CAP for the start of each line. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 119: Plane Color Graphics

    0800 08FF 0800 0800 08FF 08FF 0800 08FF (Magenta data) <esc>*b16W 0800 0800 08FF 0800 08FF 08FF 08FF 0800 (Yellow data) <esc>*rC End Raster <esc>E Reset printer HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 120

    08FF 0800 0800 0800 0100 0800 0800 0800 0800 (Black data) <esc>*b18V 0800 08FF 0800 0800 0100 08FF 0800 08FF 08FF (Cyan data) <esc>*b18V 0800 0800 08FF 0800 0100 08FF 08FF 0800 08FF (Magenta data) HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 121

    0800 0800 08FF 0800 0100 08FF 08FF 0800 08FF (Magenta data) <esc>*b18W 0800 0800 0800 08FF 0100 08FF 08FF 08FF 0800 (Yellow data) <esc>*rC End Raster <esc>E Reset printer HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 122: Printer Commands

    Raster Y Offset Esc ) s # V Font Height - Secondary (in points) Esc * c # D Font ID Esc ( s # W Download Character HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 123

    Esc Y Display Functions Mode On Esc * o # M Print Quality Esc Z Display Functions Mode Off a. Obsolete commands for 6XX printers and above. HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide...

  • Page 124: Hp Developer Exchange, Comments & Feedback, Other Resources For Assistance

    HP Developer Exchange Available on the World Wide Web - HP Printing & Imaging Solution Provider Program. Become a registered HP Developer, and receive other documents like this one on other HP products. HP Printing & Imaging Solution Provider Program can be found at: http://dsportal.eservices.hp.com/dspp/home/home_DSPPJumpPage_IDX/...

Comments to this Manuals

Symbols: 0
Latest comments: