HP LaserJet 4100 HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref
HP LaserJet 4100 Manual
View all HP LaserJet 4100 manuals
Add to My Manuals
Save this manual to your list of manuals |
HP LaserJet 4100 manual content summary:
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 1
Part I Click here to access Part II on hp.com. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 2
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 3
PCL 5 Printer LanguageTechnical Reference Manual HP Part No. 5961-0509 Printed in USA First Edition - October 1992 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 4
information which is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced, or translated to another language without the prior written consent of Hewlett-Packard Company. The information contained in this document is subject to change without - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 5
reference manual for PCL 5 and earlier printers. It replaces the September 1990 edition of the HP PCL 5 Printer Language Technical Reference Manual (p/n 33459-90903). If you have ordered another PCL Technical Reference document, this manual and the PCL 5 Comparison Guide are the updated replacement - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 6
trademark of Monotype Corporation plc. PCL, and Vectra are U.S. registered trademarks of Hewlett-Packard Company. Resolution Enhancement is a trademark of Hewlett-Packard Company. IBM is a registered trademark of International Business Machines Corporation. Microsoft, Windows, and MS-DOS are - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 7
of printer features for use in all HP printers. Printer features are accessed through the corresponding commands of Hewlett-Packard's PCL language. This manual describes the PCL 5 printer language. This includes descriptions of the commands available for Hewlett-Packard PCL 5 LaserJet printers and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 8
codes and escape sequences). Chapter 2 - The Page This chapter introduces the idea of the logical page and identifies the area in which printing can occur. It also describes the PCL coordinate system and the HP-GL/2 picture frame. Chapter 3 - The Print Environment This chapter introduces the printer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 9
. Chapter 10 - User-Defined Symbol Sets This chapter describes the capability of some PCL 5 printers to enable users to define their own symbol sets for special needs. Chapter 11 - Soft Font Creation This chapter describes how to organize font/character data for downloading to the printer. Chapter - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 10
for reducing the amount of data needed to define the raster image. Chapter 16 - Status Readback This chapter describes the PCL status readback features. Status readback enables you to obtain PCL status information from the printer, such as: available printer (user) memory, a list of fonts and symbol - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 11
Configuration and Status Group This chapter describes the commands used to set default conditions and values for programmable HP-GL/2 features. It also explains the commands used for scaling, establishing a soft-clip window, and rotating the HP HP-GL/2 graphics. HP-GL/2 mode. This allows you to print HP - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 12
PCL 5 Comparison Guide This document contains supplemental information for programming PCL 5 LaserJet printers. It identifies how different HP PCL 5 LaserJet printers implement the commands described in the HP PCL 5 Printer Language Technical Reference Manual. It provides printer Technical Support 90 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 13
Can Learn From This Manual v Related Documentation x PCL 5 Comparison Guide x Intellifont Scalable Typeface Format x TrueType Font Files x Introduction to HP PCL PCL Printer Language Architecture 1-2 What are Printer Commands 1-3 Control Codes 1-3 PCL Commands 1-3 HP-GL/2 Commands 1-4 PJL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 14
Reset 3-8 Cold Reset 3-9 PCL Job Control Commands Printer Reset Command 4-2 Universal Exit Language Command 4-3 Number of Copies Command 4-4 Simplex/Duplex Print Command 4-5 Left Offset Registration Command 4-7 Top Offset Registration Command 4-8 Duplex Page Side Selection Command 4-10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 15
6-9 HT - Horizontal Tab 6-9 Vertical Cursor Positioning (Rows) Command 6-10 Vertical Cursor Positioning (Decipoints) Command 6-11 Vertical Cursor Positioning (PCL Units) Command 6-12 Half-Line Feed Command 6-13 Vertical Cursor Positioning Control Codes 6-13 LF - Line Feed 6-13 FF - Form Feed - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 16
Selectionby ID Command 8-26 Examples 8-27 Select Default Font Command 8-27 HP-GL/2 Font Selection 8-27 Transparent Print Data Command 8-28 Example 8-28 Underline Command 8-29 Font Management Downloading Soft Fonts 9-2 Temporary vs. Permanent Fonts 9-3 Deleting Fonts 9-3 Font ID Command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 17
Sets Symbol Set ID Code Command 10-2 Define Symbol Set 10-4 Header Size (UI 10-5 Encoded Symbol Set Designator (UI 10-6 Format (UB 10-6 Symbol Set Type (UB 10-6 First Code (UI 10-7 Last Code (UI 10-7 Character Requirements (Array of UB) and character requirement 10-7 Symbol Map (Array of UI - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 18
Examples 11-43 Character Definitions 11-48 Character Code Command 11-49 Character Definition Command 11-50 Character Descriptor Formats 11-51 Character Descriptor and Data Format for PCL Bitmap Fonts 11-51 Character Descriptor and Data Format for Intellifont Scalable Fonts 11-60 Character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 19
13-18 Master Y Resolution (UI 13-18 User-defined Pattern Example 13-19 Set Pattern Reference Point Command 13-22 Pattern Control Command 13-23 PCL Rectangular Area Fill Graphics Rectangular Area Fill Procedure 14-1 Horizontal Rectangle Size (Decipoints) Command 14-3 Horizontal Rectangle Size - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 20
16-10 Entity Status Responses 16-11 Font Response 16-11 Font Extended Response 16-15 Macro Response 16-16 User-Defined Pattern Response 16-17 Symbol Set Response 16-18 Entity Error Codes 16-19 Free Space Command 16-21 Memory Status Response 16-22 Memory Error Response 16-23 Flush All Pages - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 21
of 6.5 inches, send 18-9 Set Picture Frame Anchor Point 18-10 Example 18-10 HP-GL/2 Plot Horizontal Size 18-11 Example 18-11 HP-GL/2 Plot Vertical Size 18-12 Example 18-12 Enter HP-GL/2 Mode 18-13 Example 18-13 Enter PCL Mode 18-14 Example 18-14 Default Settings 18-15 EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 22
Scaling Effectively 19-8 Enlarging or Reducing a Picture 19-8 Drawing Equal-Size Pictures on a Page 19-10 Creating Mirror-Images 19-12 Adapting the HP-GL/2 Coordinate System to Match the PCL System . . . . . .19-15 Windowing: Setting Up Soft-Clip Limits 19-18 CO, Comment 19-19 DF, Default - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 23
The Polygon Group Using the Polygon Buffer 21-2 Drawing Rectangles 21-3 Drawing Wedges 21-6 Drawing Polygons 21-10 Drawing Subpolygons 21-11 Filling Polygons 21-12 Drawing Circles in Polygon Mode 21-14 `Approximating Polygon Buffer Use 21-14 Counting the Points in a - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 24
The Character Group Printing Labels 23-3 Moving to the Carriage Return Point 23-5 Control Codes 23-6 Default Label Conditions 23-7 Enhancing Labels 23-8 Character Size and Slant 23-8 Character Spaces and Text Lines 23-8 Label Orientation and Placement 23-9 Terminating - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 25
Control 24-3 Printer Reset 24-3 PCL Page Control 1 24-4 Paper Source 24-4 Page Size 24-4 Text Area/Margins 24-4 HMI 24-4 PCL Cursor Positioning 24-5 Fonts 24-5 PCL Raster Graphics 24-7 Macros 24-8 HP-GL/2 Vector Graphics 24-9 Performance 24-10 PCL Commands 24-10 Print Data 24-10 Print - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 26
Contents-14 EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 27
price/performance leadership. Its features were selected in direct response to customer requests. HP will continue to lead enhancements to the PCL printer language to deliver powerful technology advances. PCL commands are compact escape sequence codes that are embedded in the print job data stream - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 28
new page printing capabilities. Office Publishing functionality is a superset of PCL 4. New publishing capabilities include font scaling and HP-GL/2 graphics. The PCL printer language model succeeds because the following points are observed: z All HP LaserJet printers implement PCL printer language - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 29
as a command to perform and not as data to print. Note PCL printer commands (other than single-character control codes) are also referred to as escape sequences. The terms printer command and escape sequence are used interchangeably throughout this manual. Once a PCL command sets a parameter - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 30
type of printer control. Unlike PCL and HP-GL/2, which control the placement of dots on the printed page, PJL supplies job-level control. One of the main features PJL offers is the ability to switch printer languages (personalities) between jobs. For example, applications supporting PJL can - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 31
A). For a list of the two-character escape sequences supported by the printer, refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide. Following are examples of two-character escape sequences: ? E a two-character escape sequence used for resetting the printer. ? 9 a two - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 32
being performed. Value Data is eight-bit data (for example, graphics data, downloaded fonts, etc.). The number of bytes of binary data is specified by the value field of the escape sequence. Binary data immediately follows the terminating character of the escape sequence. 1-6 Introduction to HP PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 33
character. This escape sequence performs a single function. Notes Some escape sequences shown in this manual contain spaces between characters for ?&l2A): Notice that the "?"and the "&l"are dropped from the second printer command when the two commands are combined. Also, the upper-case "O" - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 34
, these are "&" and "l". 2 All alphabetic characters within the combined printer command are lower-case, except the final letter which is always upper- in the printer command must always be upper-case to let the printer know that the command is complete. 3 The printer commands are performed in the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 35
2 The Page Introduction This chapter describes the PCL coordinate system. It defines the logical page and the printable area; it introduces the HP-GL/2 (vector graphics) picture frame, and identifies the boundaries of each. EN Introduction 2-1 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 36
be moved to different points on the logical page using the cursor positioning commands (see Chapter 6, Cursor Positioning). The PCL cursor cannot be moved outside of the logical page bounds. The size of the logical page for the media (paper, transparencies, labels, etc.) is defined in Table 2-1 and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 37
through PJL commands. Note EN Figure 2-1 300 vs 600 DPI Dot Sizes Refer to Appendix E of the PCL 5 Comparison Guide or the printer User's Manual to determine the default print resolution for a specific HP LaserJet printer. The printer's physical dot size has no direct bearing on the size of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 38
as shown in Figure 2-2. Note Figure 2-2 X,Y PCL Coordinates The point (0,0) is at the intersection of the left edge of the logical page and the current top margin position. Since the point (0,0) is always at the intersection of the left edge of the logical page and the current top margin position - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 39
motion index (VMI), or lines-per-inch (lpi). HMI, VMI and lpi are described in Chapter 5, Page Control Commands. Printer Internal Units Internally, the printer uses a different unit of measure. It maps PCL Units, decipoints, and columns and rows to this unit of measure. This internal unit is 1/7200 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 40
is used. The default HP-GL/2 picture frame is the current top and bottom margins and the left and right edges of the logical page. The HP-GL/2 picture frame rotates with the PCL page orientation, but is not affected by the PCL print direction. Figure 2-3 PCL Logical Page with HP-GL/2 Picture Frame - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 41
area is defined in Table 2-1 and Table 2-2. Table 2-1 Portrait Logical Page & Printable Area Boundaries DIMENSIONS (at 300 DPI - double for 600 DPI) PAPER SIZE A B C D E F G H LETTER 2550 3300 2400 3300 75 0 50 150 Legal List 1 2550 4200 2400 4200 75 0 50 150 LEDGER 3300 5100 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 42
Table 2-2 Landscape Logical Page & Printable Area Boundaries DIMENSIONS (at 300 DPI - double for 600 DPI) PAPER SIZE A B C D E F G H LETTER 3300 2550 3180 2550 60 0 50 150 Legal List 1 4200 2550 4080 2550 60 0 50 150 LEDGER 5100 3300 4980 3300 60 0 50 150 EXECUTIVE 3150 2175 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 43
The HP LaserJet printers perform pixel-level clipping. When printing characters or graphics, if any Area Character Cell Positioning Pixel level clipping can also occur at the logical page for PCL when the page is positioned using the Left Registration command. Pixel level clipping also occurs at - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 44
2-10 The Page EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 45
next job should clear all previous job settings by performing a reset. This allows a job to start with the HP LaserJet printers. Not all of the features are applicable to every printer. To identify variations and default settings for specific printers, refer to Chapter 3 of the PCL 5 Comparison Guide - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 46
3-2 lists typical HP-GL/2 print environment features. Note he factory default settings for the printer features are not shown here, since they differ depending on the printer model. To identify variations and default settings for specific printers, refer to Chapter 3 of the PCL 5 Comparison Guide - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 47
PCL Context (continued) PAGE CONTROL FONT MANAGEMENT Print Direction Orientation2 Page Size2 Font ID Character Code Symbol Set ID Paper from the printer's control panel for these items. 3. Selectable from the printer control panel if duplex is selected. 4. Selectable from the printer's control - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 48
Print Environment Features - PCL Context (continued) RECTANGULAR AREA FILL TROUBLESHOOTING Horizontal Rectangle Size End- user from the printer's control panel for these items. 3. Selectable from the printer control panel if duplex is selected. 4. Selectable from the printer's control panel - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 49
3-2 Factory Default Print Environment Features - HP-GL/2 Context CHARACTER GROUP POLYGON GROUP Data Mode Number of Pens Primary Font ID Transparency Mode Secondary Font ID Screened Vector Scalable or Bitmap Font CONFIGURATION & STATUS GROUP VECTOR GROUP Scale Mode Plotting Mode Window - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 50
user default features refer to Chapter 3 of the PCL 5 Comparison Guide.) z Number of Copies z Font Selection (Font Source, Font Number, Pitch1 or Point Size1) z Duplex/Simplex z Binding Edge2 z Tray z Paper (Page Size: Paper and Envelopes) z Manual Feed z Orientation z Symbol Set Notes Refer to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 51
of the items listed in Table 3-3, below. Table 3-3 Items Not Included in Modified Print Environment PCL Context HP-GL/2 Context Overlay environment HP-GL/2 overlay environment Current cursor position Duplex registration Cursor position stack Polygon buffer Downloaded fonts/macros User - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 52
the printer User's Manual). The Printer Reset command is described in Chapter 4, PCL Job Control Commands. The ECE command prints any partial pages of data that may have been received. The control panel [RESET] discards any formatted pages which have not yet been printed. Both resets ( ECE HP-GL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 53
Cold Reset A Cold Reset restores the Factory Default Environment which includes resetting the control panel items to their factory default settings. A Cold Reset is performed by power cycling the printer while holding [ON LINE] until a 08 COLD RESET is displayed. EN Resetting the Print Environment - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 54
3-10 The Print Environment EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 55
4 PCL Job Control Commands Introduction A job typically consists of three parts: z Commands providing job control. z Commands providing page control. z Print data. Table 4-1 Structure of a Typical Job ?%-12345X ?E Preamble Page 1 Page 2 • • • UEL Command (exit language) Printer Reset Command. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 56
Measure. Printer Reset Command Receipt of the Printer Reset command restores the User Default Environment, deletes temporary fonts, macros, user-defined symbol sets and patterns. It also prints any partial pages of data which may have been received. ? E Notes Hewlett-Packard strongly recommends - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 57
actions: z Prints all data received before the Exit Language command. z Performs a printer reset (same effect as ? E). z Shuts down the PCL 5 printer language processor. z Turns control over to PJL. Notes Hewlett-Packard strongly recommends the use of both ? E (printer reset) and ?%-12345X (UEL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 58
and earlier LaserJet printers.) This command can be received anywhere within a page and affects the current page as well as subsequent pages. Example To print 3 copies of a page, send: ?&l3X Note Figure 4-1 Number of Copies The HP-GL/2 Replot (RP) command is inactive for PCL 5 printers; use the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 59
of the physical page (see Figure 4-3). Selecting long-edge binding usually results in font rotation. This may be a concern if available user memory is critical. Note If this command is received by a printer which does not contain the duplex feature, it is ignored. Printers which do not contain - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 60
Figure 4-2 Long-Edge Binding Mode Figure 4-3 Short-Edge Binding Mode 4-6 PCL Job Control Commands EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 61
not relative to the present location. The registration commands may cause data loss by moving the logical page outside the printable area. This command has the same effect regardless of orientation. This command can be used in both simplex and duplex modes. EN Left Offset Registration Command 4-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 62
to the current location of the logical page. The registration command may cause data loss by moving the logical page outside the printable area. This command has the same effect regardless of orientation. This command can be used in both simplex and duplex modes. 4-8 PCL Job Control Commands EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 63
Figure 4-4 Short-Edge Binding Mode Offsets Figure 4-5 Long-Edge Binding Mode Offsets EN Top Offset Registration Command 4-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 64
Select front side 2 - Select back side Default = 0 Range = 0-2 (All other values ignored) If this command is received by a printer which does not have duplex or if duplexing is not enabled, these commands just eject the current page (sheet), positioning the cursor at the default position on the next - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 65
be performed. If this command is received by a printer which does not have job separation, the command is ignored. Note It is possible to perform job offset in printers which do not have a mechanical offset mechanism but have dual paper trays. In dual bin printers, job offset can be performed by - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 66
bins (upper or lower [rear]) for paper output. ? & l # G # = 1 - Upper Output Bin 2 - Lower (Rear) Output Bin Default = Upper Output Bin Range = 1, 2 Note If this command is received by a printer which does not contain the dual output bin feature, it is ignored. 4-12 PCL Job Control Commands EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 67
z Space (SP control code). z Backspace (BS control code). z Bitmap Character Delta X ("Delta X (SI)," Chapter 11). For example, if the unit of measure is set to 96 (one PCL Unit = 1/96 inch), then the HMI is rounded to the nearest 1/96 inch. If the unit of measure is set to 300 (one PCL Unit = 1/300 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 68
data (bitmap fonts, raster graphics or patterns). Once the units of measure is changed, it stays in effect until another is selected or the printer is reset. A control panel or ? E reset returns the current unit of measure setting back to the device default setting (300). The units value is part - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 69
Note Figure 4-6 Cursor Moves at Different Unit of Measure Settings The printer's physical dot size has no direct bearing on the size of PCL Units used in cursor movements. In addition, PCL Units are not affected by the current control panel or PJL resolution setting. If no other unit of measure - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 70
4-16 PCL Job Control Commands EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 71
text spacing. This chapter describes the commands providing page format control. If a number of consecutive pages within a job have the same format, the associated page control commands should be sent only once for that group of pages. Remember, once a PCL command is set, it remains in effect until - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 72
(176mm x 250mm) Default = 2 (Configurable from Control Panel) Range = 1, 2, 3, 6, 26, 27, 80, 81, 90, 91, 100 (Other values ignored) Note Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide or the printer User's Manual for lists of supported paper and/or envelope - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 73
requesting installation of a paper tray of the specified size. The Page Size command is not supported on the HP LaserJet,, LaserJet+, or the LaserJet 500+ printers. Example To select a legal size page, send: ? & l3A If the current source paper tray is "LETTER" and the requested page size is not - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 74
varies slightly from printer to printer. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide or the printer User's Manual for paper source feature implementation details for specific HP LaserJet printers. The Paper Source command causes the current page to be - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 75
panel. Note The HP LaserJet 2000, LaserJet IID, LaserJet IIP and all PCL 5 printers automatically rotate all fonts to the current orientation. Table 5-1 shows how changing certain PCL features (such as a reset, orientation, page size or page length) or changing the HP-GL/2 picture presentation - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 76
Changing Orientation or Sending a Page Size Command: z Defaults picture frame anchor point. z Defaults picture frame. z Defaults HP-GL/2 plot size. z Defaults P1 and P2 ("IP;"). z Defaults soft-clip window ("IW;'"). z Clears the polygon buffer ("PM0;PM2"). z Updates the current position to the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 77
the logical page using the HP-GL/2 RO command (refer to Chapter 21, for additional information). Most HP-GL/2 state variables retain their previous HP-GL/2 value upon receipt of this command (they are not affected by PCL mode). However, certain changes to the PCL state can affect the HP-GL/2 state - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 78
Figure 5-2 HP-GL/2 Picture Orientation with Respect to Logical Page Orientation 5-8 Page Control Commands EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 79
page rotation. For example, rotating a default page (portrait orientation, 0° print direction) 90° causes data to print in the landscape direction across the "portrait" page Print Direction Command does not affect HP-GL/2 vector graphic images. HP-GL/2 graphics can be rotated only with the Orientation - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 80
Figure 5-3 Changing Print Direction on a Page 5-10 Page Control Commands EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 81
between the bottom of the text area and the top of the text area on the next page only if perforation skip is disabled. Characters are printed outside the text area if a cursor move being discarded. The default text area and the default HP-GL/2 picture frame are the same. EN Text Area 5-11 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 82
Figure 5-4 Text Area Within the Page 5-12 Page Control Commands EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 83
& a # L # = Column number Default = Column 0 (Left bound of logical page) Range = 0 - Right margin The first column within a line is column 0, which is located , which thereby defines the maximum number of columns on the logical page). If the value field specifies a column greater than the current - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 84
). If the value field specifies a column which is greater than the right edge of the logical page, the right margin is set to the right edge of the logical page. If the value field specifies a column less than the left margin, the command is ignored. Margins represent a physical position and once - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 85
Clear Horizontal Margins Command The Clear Horizontal Margins command resets the left and right margins. The left margin is set to the left edge of the logical page (column 0) and the right margin is set to the right edge of the logical page. ? 9 EN Clear Horizontal Margins Command 5-15 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 86
Margin command is ignored if the value field (#) is greater than the current logical page length or if the current VMI is 0 (VMI defines the distance between lines of text). Receipt of a Top Margin command resets the text length according to the following equation: Note The top margin represents - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 87
Note The first line of the logical page is line 0. Figure 5-5 Margin Cursor Positioning EN Top Margin Command 5-17 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 88
length, page size, or top margin is changed. The user default text length is computed as follows: Note The user default VMI is selectable using the control panel; VMI is calculated from the FORM menu setting. Example To select a text length of 60 lines, send: ?&l6ØF 5-18 Page Control Commands - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 89
of one page to the top of the text area (top margin) of the next page. When top of the text area on the next page. When perforation skip is disabled, a Line Whenever the perforation skip mode is changed, the top margin and page length are returned to their default values. Note When perforation - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 90
affected by HMI. When proportional fonts are selected, the HMI affects only the Space control code character. HMI is reset to match the new font when any of the font characteristics are changed and when switching between primary and secondary fonts with Shift In and Shift Out. HMI is equal to the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 91
120 inch or 1/17.75 inch. To use Courier 12 point (10 cpi) and print 80 characters across A4 paper, requires adjusting the HMI value. The HMI value is calculated as follows: * This value was obtained from Figure 2-3 which identifies the page sizes (in 300 dpi dots). EN Horizontal Motion Index (HMI - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 92
using the FORM menu item (refer to the printer User's Manual for additional information). Page Length command (?&l#P) follows a VMI change, the physical size of the page is recalculated. Therefore, depending on the VMI modification made, the printer may request a different paper size. 5-22 Page - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 93
, in portrait orientation (with one-half inch top and bottom margins) send: ?&l7.27C 7.27 = (10/66) x 48 To print 66 lines per page on letter or legal-size paper, in landscape orientation (with one-half inch top and bottom margins) send: ?&l5.45C 5.45 = (7.5/66) x 48 EN Vertical Motion Index (VMI - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 94
of lines printed per inch. Only the values listed below are valid. ? & l # D menu item. Example To select 12 lpi, send: ?&l12D Note Once a PCL command sets a parameter, that parameter remains in effect until another command changes it. The most recently received command has precedence. 5-24 Page - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 95
the printer does not actually have a cursor, the PCL page data. The cursor can be moved anywhere within the logical page using a combination of horizontal and vertical cursor positioning commands and control codes under "Character Width" in Chapter 10, and allows printing characters without requiring - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 96
be specified. Absolute motion always specifies the distance to move referenced from the top margin at the left bound of the logical page (0,0), regardless of the current active position (CAP) (see Figure 6-1). An unsigned value field in a cursor position command indicates absolute cursor movement - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 97
Horizontal Tab (HT control code). z Space (SP control code). z Backspace (BS control code). z Bitmap Character Delta PCL Unit moves (horizontal and vertical rectangle size, etc.) is one Unit equals 1/300 inch. This is true even when a different resolution (such as 600 dpi) is selected on the printer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 98
a decipoint is 1/720 inch or one-tenth of a PCL point (a PCL point is exactly 1/72 inch as opposed to a typographic are described in more detail in Chapter 5. HP-GL/2 has its own coordinate system and units. For additional information about the HP-GL/2 coordinate system and units, refer to Chapter - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 99
. For example, if the unit of measure is set to 96 (one PCL Unit = 1/96 inch), then the HMI is rounded to the nearest 1/96 inch. made for a location outside the printer's logical page, the CAP is moved to the appropriate logical page limit. EN Horizontal Cursor Positioning (Columns) Command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 100
is 0 and the right most position is the right bound of the logical page. If a request is made for a location outside the printer's logical page, the current active position (CAP) is moved to the appropriate logical page limit. The value field is valid to two decimal places. 6-6 Cursor Positioning - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 101
most position is the right bound of the logical page. If a request is made for a location outside the printer's logical page, the current active position (CAP) is moved to the appropriate logical page limit. Note The current unit size used in PCL Unit moves is determined by the value specified in - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 102
moved by the Space (SP), Backspace (BS), and Horizontal Tab (HT) control codes is defined by the current HMI value. The current unit of measure setting affects rounded. For example, if the unit of measure is set to 96 (one PCL Unit = 1/96 inch), then the HMI is rounded to the nearest 1/96 inch. If - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 103
if "world" was printed with a proportional font and then 5 backspaces were performed, the distance moved back would be five times the width of the "d." HT 8th column between the left margin and the right bound of the logical page. If the new horizontal position crosses the right margin, the new - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 104
bottom of the logical page. Note Since the top margin can be changed using a printer command, the physical location of the point (0,0) may change. This affects the cursor position on the page. If a request is made for a location outside the printer's logical page - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 105
the top margin. The top position, defined by the top margin, is 0 and the bottom position is determined by the bottom of the logical page. Note Since the top margin can be changed using a printer command, the physical location of the point (0,0) may change. This affects the cursor position on the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 106
change. This affects the cursor position on the page. If a request is made for a location outside the printer's logical page, the current active position (CAP) is moved to the appropriate logical page limit. Note The current unit size used in PCL Unit moves is determined by the value specified in - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 107
setting). ? = Vertical Cursor Positioning Control Codes Two control codes can be used to position the cursor vertically. These control codes are explained below. LF - Line Feed the text area on the next page. (Refer to "Line Termination Command" later in this chapter.) EN Half-Line Feed Command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 108
3 - CR=CR-LF; LF=CR-LF; FF=CR-FF Default = 0 Range = 0-3 For example, if a value field of 1 is sent, the printer interprets each Carriage Return (CR) received as a Carriage Return (CR) and Line Feed (LF) control code. A Line Feed or Form Feed would be sent as is. If a value of 3 is sent, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 109
to restore more positions than were pushed, the command is ignored. A printer reset restores the current active position stack to the top (all saved positions the logical page. If the position popped is outside the current logical page, the position is moved to the appropriate logical page limit. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 110
6-16 Cursor Positioning EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 111
key words or phrases may be highlighted, using a bold or italic font. For example, this text is printed using a Century Schoolbook typeface; its height is 10 point, its style is upright, and its stroke weight is medium. Examples of different fonts are shown in Figure 7-1. Figure 7-1 Font Samples EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 112
of font products may be purchased from Hewlett-Packard or other vendors. Refer to your Hewlett-Packard Accessories and Supplies Brochure for a list of HP's font products. Soft fonts are supplied as files on flexible disk transferred (downloaded) into the printer's user (RAM) memory. Once a soft font - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 113
mind. For example, the legal and math symbol sets were designed to support legal and scientific applications. The following figure shows two common symbol sets, User-defined symbol sets are supported by some HP LaserJet printers. See Chapter 10 for more information. Figure 7-2 Symbol Sets EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 114
Spacing Another characteristic that differentiates fonts is spacing. Fonts have either fixed or proportional spacing. Fixed-spaced fonts (Figure 7-3) are those in which the inter-character spacing is constant. Proportionally-spaced fonts (Figure 7-4) are those in which the inter-character spacing - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 115
of characters per inch varies for proportional fonts. Height Figure 7-5 Pitch The height of a font is the measurement of the body of the type in PCL points. A PCL point is 1/72 inch in bitmap fonts, and approximately 1/72 inch in scalable fonts. The body of the type is slightly larger than the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 116
Style Style is defined by three characteristics: posture (upright, italic), width (condensed, normal, expanded, etc.), and structure (solid, outline, shadow etc.). Examples of upright and italic styles are shown. Figure 7-7 Style Stroke Weight Stroke weight describes the thickness of the strokes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 117
Typeface Family Typeface identifies the design of the symbols of the font. Each typeface family has unique and distinguishing design characteristics. The following example shows typefaces from various typeface families. Figure 7-9 Typeface EN Typeface Family 7-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 118
Orientation Orientation defines the position of the logical page with respect to the physical page as shown in Figure 7-10. Figure 7-10 Orientation The HP LaserJet IID, IIP, 2000, and all PCL 5 LaserJet printers automatically rotate fonts to the current orientation (all fonts are available in all - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 119
and Scalable Typefaces There are two basic formats of fonts used by HP PCL 5 printers: bitmap (Figure 7-11) and scalable (Figure 7-12). Earlier HP LaserJet printers supported only bitmap fonts. Bitmap fonts have a fixed bit-pattern for each character. The size of the character is fixed, depending - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 120
Figure 7-11 Bitmap Character Figure 7-12 Scalable Character 7-10 Fonts EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 121
and symbol sets for current models of HP LaserJet family printers are listed in Chapter 2 of the PCL 5 Comparison Guide. Font and symbol set listings for earlier printer models can be found in the User's Manual for each printer. Special Effects HP PCL 5 printers allow you to create special effects - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 122
7-12 Fonts EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 123
After the table is updated (receives new characteristic values), and text is ready to be printed, the printer performs a font select. The printer searches the available fonts and scalable typefaces to select one that matches (or most closely matches) the characteristics as listed in the font select - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 124
is available that matches, that font is selected. If several fonts match, the printer compares the next highest priority characteristic to the corresponding characteristic of the available fonts and so on down the list. When only one font remains, that font is selected. However, if after comparison - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 125
printer ROM (Read Only Memory), SIMM module ROM, cartridge ROM, and printer RAM (random access memory; user memory). These font locations are shown below, listed Appendix E of the PCL 5 Comparison Guide for cartridge slot priority information for the different HP LaserJet printers. In 600 dpi mode - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 126
fixed-spaced, 10 pitch, 12 point, upright, bold, Courier font, for the current page orientation, specify each printer's font select table could be changed as follows: Symbol Set Spacing Pitch Height Style Stroke Weight Typeface Family Roman-8 Fixed 10 cpi 12 point Upright MediumÍ Courier 8-4 PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 127
HP recommends that all of the characteristics be sent to ensure that the correct font is selected. Note PCL 5 printers can print any number of distinct fonts per page and the secondary font, the control codes ''SI'' (Shift In; ASCII 15 can be printed on the LaserJet 4 printer at 600 dpi. However - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 128
in the PCL 5 Comparison Guide) E C ) ID Secondary Symbol Set Command ID = Symbol Set ID value (see Appendix C in the PCL 5 Comparison Guide). Default = may select a user default symbol set from the printer control panel (see the printer User's Manual). If the font is a scalable typeface, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 129
PC-8 10U 3 of 9 Barcode 0Y Windows 3.1 Latin 1 (ANSI) 19U User-defined symbol sets are supported in some HP LaserJet printers. To specify a user-defined symbol set, use the symbol set ID value as defined by the Symbol Set ID Code Command. See Chapter 10 for more information. Example To specify - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 130
The HP LaserJet printers provide several 7-bit ISO (International Organization for Standardization) or "keyboard" symbol sets to support European languages. Each ISO symbol set is a unique ordering of symbols contained within the Roman-8 symbol set (see Appendix B in the PCL 5 Comparison Guide). The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 131
size. The user default primary and secondary spacings are implicitly set by selection of a user default font from the printer's control panel (refer to the printer User's Manual). Example To specify proportional spacing for the primary font, send: EC(s1P To specify fixed spacing for the secondary - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 132
from the printer's control panel (refer to the printer User's Manual). The range of valid pitch selections for a fixed-spaced scalable font is 576 to .10 characters/inch, requested pitch values are outside of HP's recommended limits, unsatisfactory results can occur. 8-10 PCL Font Selection EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 133
60% of an Em, and 30 = 1 ÷ (0.64 ÷ 72) . (The width of characters in Letter Gothic is approximately 50 Em. For other fonts, refer to the font metric data supplied by the font vendor.) If a scalable fixed- value of the former font (as listed in the font select table) See "Font Selection by - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 134
the nearest quarter point). The factory default primary and secondary heights are 12 point. In PCL bitmap fonts, a point is 1/172 (0.01389) inch. For scalable fonts, the definition user default font from the printer's control panel (refer to the printer User's Manual). 8-12 PCL Font Selection EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 135
number, send the Height command to specify the point size otherwise, the size is determined by the height characteristic value of the former font (as listed in the font select table) See "Font Selection by ID Command" later in this chapter for more information. Example To specify a height of 12 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 136
32767) Style values for the most common typefaces are listed in Table 8-1. Additional style values may also be obtained from the related font documentation provided with HP's font products. Table 8-1 Common Font Styles Value 0 1 4 5 8 24 32 64 128 160 Font Styles (upright, solid) italic condensed - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 137
Notes With the introduction of the HP LaserJet IID printer, Hewlett-Packard expanded the style values (in the Font Header style value field) from a one-byte to a two-byte value field, expanding the style range from 0-255 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 138
= - 7 to 7 (less than -7 maps to -7; greater than 7 maps to 7) The value field (#) specifies the thickness of the strokes used in the design of the font. The supported stroke weight values are -7 through 7. The Bold Demi Bold Bold Extra Bold Black Extra Black Ultra Black 8-16 PCL Font Selection EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 139
by selection of a user default font from the printer's control panel (refer to the printer User's Manual). Example To specify a bold stroke weight for the use. Therefore, the typeface treatment designation "medium" may not always take a PCL value of 0. This weight value may be assigned to "book" or - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 140
User's Manual). There is some variation in how font selection occurs between HP LaserJet models. The typeface selection compatibility for two types of values is identified for various HP LaserJet printers in Chapter 2 of the PCL 5 Comparison Guide. Note Use the typeface family values, listed in - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 141
typeface (two-byte) family values are listed below. For a complete listing of typeface family and base values, refer to Appendix C in the PCL 5 Comparison Guide. FamilyValue 0 16602 4168 4127 4119 4101 4148 Sample Typeface Values Typeface Family Line Printer Arial Antique Olive ITC Avant Garde CG - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 142
and raster graphics in the orientation for which they were designed. However, the HP LaserJet IID, IIP, 2000, and all PCL 5 HP LaserJet printers have the capability to automatically rotate bitmap fonts and raster graphics to match the page orientation; therefore, all fonts are available in all four - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 143
weight Typeface family VALUE ASCII Fixed 16.66 cpi 8.5 point Upright Medium Line Printer ESCAPE SEQUENCE EC(0U EC(s0P EC(s16.66H EC(s8.5V EC(s0S EC(s0B EC(s0T The following escape sequences can be sent to the printer to select a primary font with the above characteristics: EC(0UEC(s0PEC(s16. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 144
s1P EC(s14.25V EC(s0S EC(s3B EC(s4101T The following escape sequences can be sent to the printer to select a primary font with the above characteristics: EC(0UEC(s1PEC(s14.25VEC(s0SEC(s3BEC(s4101T Combining be sent to ensure that the correct font is selected. 8-22 PCL Font Selection EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 145
is an elimination process. The nine steps are performed in the following order: Note When the printer is in 300 dpi mode, any 600 dpi selected in the current pitch. (A proportionally-spaced font is always available in PCL 5 printers, but it may not be available in the specified symbol set.) 3 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 146
is ignored. 8 Location - if after performing all the preceding steps, more than one printers with two cartridge slots, one slot has priority over the other. Refer to Appendix E of the PCL 5 Comparison Guide for cartridge slot priority information for the different HP LaserJet printers. 8-24 PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 147
is its orientation. If two fonts still remain and match in all the above characteristics except orientation, that font which matches the current page orientation is selected. If there is a soft font (highest priority location) available that matches all selection characteristics, but is not in the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 148
in the printer's font selection table. To specify a different symbol set, send a symbol set selection command prior to the Font Selection ID command. For shared or multi-user environments, Hewlett-Packard recommends that soft fonts be selected by characteristics rather than ID number. 8-26 PCL Font - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 149
PCL font selection commands, fonts can also be selected and printed in HP-GL/2 mode using the HP-GL/2 label commands (refer to Chapter 23, Character Group). The HP printing fonts on any angle on the logical page. Fonts can also be scaled using HP-GL/2 vector graphics, however this font scaling - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 150
, FF are treated as print data while in Transparent Print Data mode. Example Assuming the currently selected symbol set is PC-8, send the following to print musical notes (decimal code 14): EC&p1X [ASCII 14] The brackets "[ ]" are provided for clarity and are not part of the command sequence. Note - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 151
Underline Command The Underline command controls automatic text underlining. E C & d # D - Enable underline # = 0 - Fixed position 3 - Floating position Default = 0 Range = 0, 3 (values outside range are ignored) E C & d @ - Disable underline Once underlining is enabled, any - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 152
8-30 PCL Font Selection EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 153
9 Font Management Introduction Font management provides mechanisms for manipulating soft fonts. It provides the means for controlling which soft fonts are saved in user memory (RAM) or deleted. This is accomplished by assigning a font as either temporary or permanent, or deleting a soft font. In - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 154
associated with this ID number in the printer, the existing font is deleted during the download. Several commands are required to define a font before downloading it to the printer. These commands are described in detail in Chapter 11. Hewlett-Packard font files include the necessary commands that - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 155
memory whenever the printer's power is turned off. Switching printer languages ("personalities"), changing resolution, or changing the Page Protection setting also deletes temporary and permanent fonts from user memory in some printers (refer to the appropriate printer User's Manual for specifics - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 156
0 Range = 0 - 32767 The font ID number is used during subsequent soft font downloads, selections or deletions. The factory default font ID is 0 (if no Font ID 0 is assigned). Note The font number assigned by the printer and used from the printer's control panel is not the same as the ID number - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 157
= 0 - Delete all soft fonts 1 - Delete all temporary soft fonts 2 - Delete soft font (last ID specified) 3 - Delete Character Code (last ID and Character Code specified) 4 - Make soft font temporary (last ID specified) 5 - Make soft font permanent (last ID specified) 6 - Copy/Assign current invoked - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 158
space is printed in place of the deleted character. Also, the EC*c#E Character Code command used in the above sequence "...112e...," is described in Chapter 11.) To but makes no copy of the font in RAM. Any attempts to download or delete characters within the font are ignored. An attempt to delete - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 159
MS-DOS based hard disk. 1 Set the font ID number to 2: EC*c2D 2 Download a soft font file using the MS-DOS COPY command with the /B option: COPY /B soft font permanent to prevent its deletion during a printer reset: EC*c5F 4 Designate the permanent soft font as primary: EC(2X EN Font - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 160
HP LaserJet IIIP printer, a downloaded scalable font was restricted to a single symbol set. Now scalable fonts with no symbol set affiliation can be downloaded. These new fonts are called unbound fonts. To download unbound fonts, the "PCL , the printer searches for the symbol set first. A list of all - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 161
symbols of that collection are included. See Appendix D in the PCL 5 Comparison Guide to identify symbols in the various collections. The symbols within a supported symbol sets. When searching unbound scalable fonts (during font selection) for those that match the requested symbol set, the printer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 162
Requirements Number The other number the printer uses to determine symbol set compatibility, the Character Requirements number, is provided as part of the information contained in the symbol set. The Character Requirements number is a 64-bit number analogous to the Character Complement number - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 163
available in unbound fonts in HP LaserJet printers, more than can be identified by the character code range (0 - 255). A list of these symbols is provided in the symbol indexes, such as the Master Symbol List (MSL) and the Unicode list In Appendix D of the PCL 5 Comparison Guide). Each symbol in the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 164
but receives character codes (range 0-255), a relation must be made between the character codes and the larger range of symbol index numbers. This relation is defined by the symbol set mapping table. The printer contains a symbol set mapping table for each available symbol set. These tables list the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 165
number. For example, if the Roman-8 symbol set is selected and the printer receives character code 254, the printer accesses the Roman-8 symbol set mapping table (Table 9-1). In the Roman-8 mapping table, character code 254 is mapped to MSL number 191 or Unicode number 00b1 (plus-over-minus symbol - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 166
9-14 Font Management EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 167
- EC*c#R Define Symbol Set - EC(f#W [symbol set data] Symbol Set Control - EC*c#S To define a symbol set, you must first designate a symbol set ID code. Next, use the Define Symbol Set command to download the list of characters (character codes and related symbol index numbers) for the symbol set - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 168
C * c # R # = Symbol Set ID Code (decimal) Default = 0 Range = 0 - 32,767 (larger values are outside the legal range) When downloading a symbol set, the symbol set ID value must set is 17Q, then: (17 * 32) + (81 - 64) = 561 The symbol set ID code is 561. 10-2 User-Defined Symbol Sets EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 169
set from the MSL or Unicode list in Appendix D of the PCL 5 Comparison Guide. List them in the appropriate character code order. 2 Identify the symbol collections (and Character Requirement bits) that contain the symbols (Appendix D of the PCL 5 Comparison Guide). 3 Identify the Define Symbol Set - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 170
set. E C ( f # W [symbol set definition data] # = Number of bytes in symbol set definition Default = n/a Range = 0 - 32767 If a user-defined symbol set is already present in the printer and a new, valid symbol set is downloaded with the same Symbol Set ID Code, then the old symbol set is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 171
(B) (UB) (SB) (UI) (SI) (ULI) (SLI) (ASCxx) Font Header Field Data Type Notation : Boolean (0, 1) : Unsigned Byte (0 . . 255) : Signed Byte (-128 Header Size (UI) Set the header size to the size of the header data - the number of bytes from Header Size (byte 0) to the last byte just before the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 172
- 64) = 561 The symbol set ID code is codes for the symbol set. Bit Field 0 1 2 Designated Use 7-bit, 32-127 are printable. 8-bit, 32-127 and 160-255 are printable. 8-bit, 0 - 255 character codes are printable, however, to print codes 0, 7-15, and 27, the printer must be in transparency mode. 10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 173
refers to the most significant bit of the first byte, and bit 0 refers to the least significant bit of the eight byte field.) The bit representations for the collections are shown below. (The symbols for each collection are shown in Appendix D of the PCL 5 Comparison Guide.) EN Define Symbol Set - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 174
Bit 63 62 61 34 33 32 2,1,0 MSL Symbol Index Character Requirements Value Designated Use 1 Basic Latin required (such as required 1 Dingbats required (such as ITC Zapf Dingbats series 100, series 200, etc.) 0 Dingbats not required 000 MSL Symbol Index 10-8 User-Defined Symbol Sets EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 175
Windows PCL extensions not required. 24 1 Macintosh extensions required (such as MC Text). 0 Macintosh extensions not required. 23 1 PostScript extensions required (such as PS Text). 0 PostScript extensions not required. 22 1 Code Page extensions required (such as PC-8). 0 Code Page - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 176
Examples of values for the field include: Bit Field Value (Hex) 0000000000000000 8000000000000000 0000000100000000 0000000000000001 00000000A0000001 0000000088000001 Designated Use ) requires the ASCII and Desktop Publishing Collections (such as Ventura US). 10-10 User-Defined Symbol Sets EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 177
of UI) The symbol map contains a list of symbol index numbers. This list identifies symbols for the symbol set. (Refer to Appendix D in the PCL 5 Comparison Guide for a MSL and Unicode symbol indexes.) The symbol map pairs (maps) a character code to a symbol index number. The range of character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 178
. 2 - Delete current user-defined symbol set (last symbol set ID code specified). 4 - Make current user-defined symbol set temporary. 5 - Make (other values ignored) Downloaded symbol sets default to temporary. Internal symbol sets cannot be deleted or made temporary. 10-12 User-Defined Symbol - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 179
Symbol Map Data: EC*c341R EC(f526W 00 12 01 55 03 02 00 01 00 fe 00 00 00 00 c0 40 00 01 26 3a (character code 1) 26 3b (character code 2) 26 65 (character code 3) 26 40 (character code 4) 26 63 (character code 5) M 25 bc (character code 31 ff ff (character code 32) 00 21 (character code 33) M PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 180
symbol set permanent. MSL Symbol Index Example Symbol Map Data: EC*c341R EC(f528W 00 12 01 55 01 02 00 01 00 ff 80 00 00 02 00 00 00 00 00 cb (character code 1) 00 cc (character code 2) 00 cd (character code 3) 00 ce (character code 4) PCL Symbol Set #ID: 10U Symbol Set 528 bytes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 181
Symbol Map Data: (continued) 00 cf (character code 5) Solid Spade, Card Suit M M 00 e7 (character code 31) Down Solid Arrowhead 00 00 (character code 32) Space Code 00 01 (character code 33) Exclamation Mark M M 00 22 (character code 65) Uppercase A M M 00 43 (character code 97) - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 182
10-16 User-Defined Symbol Sets EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 183
is downloaded (transferred) from a computer to a printer is called a soft font. A PCL soft font contains a font header and a set of character definitions. The font header and character definitions contain all the information needed to format a font for use in the HP LaserJet printers. Every PCL font - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 184
font classifications. All are presented in this chapter. Not all font classifications are supported in all HP LaserJet Family printers. Refer to the PCL 5 Comparison Guide or the printer User's Manual for specific information. With the information provided in the section for bitmap fonts, it - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 185
scalable fonts are described in detail in the document, True Type Font Files. (Refer to Related Documents, located in the front of this manual, for information on how to obtain this document.) The documents, Intellifont Scalable Typeface Format and True Type Font Files do not contain descriptions - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 186
IID, IIP, 2000, and all LaserJet PCL 5 printers rotate fonts to match the paper's physical coordinate system. Intellifont Scalable Fonts Characters of an Intellifont scalable font are designed within a rectangular area known as the Agfa Design Window (Figure 11-2). The units of this coordinate - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 187
size is 250 points (a CG point=.01383 inches). There are 8782 units per Em at the Master Font Size. Figure 11-2 Agfa Design Window TrueType Scalable Fonts TrueType scalable font character coordinates are typically based on a system of 2048 units per Em. The baseline is defined by y-coordinate - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 188
used to download font header data to the printer. E C ) s # W [font header data] Default LaserJet 4 and later printers. It is included in this manual to maintain backward-compatibility with earlier versions of PCL - This new font header supports TrueType scalable fonts (bound or unbound). This - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 189
" in the front of this manual. The figures that follow illustrate the font header formats for the various font classifications. The individual fields for the font headers are described following the figures. Although some LaserJet printer models do not use all of the data in the font header and thus - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 190
Position (Distance) Underline Thickness (Height) 32 Text Height 34 Text Width 36 First Code 38 Last Code 40 Pitch Extended Height Extended 42 Cap Height 44-47 Font Number M 48-63 Font Name M 64 Copyright (optional) Table 11-3 Format 20 Font Header (for Resolution-Specified Bitmapped) Byte - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 191
(for Resolution-Specified Bitmapped) (continued) 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch 32 Text Height 34 Text Width 36 First Code 38 Last Code 40 Pitch Extended Height Extended 42 Cap Height 44-47 48-63 64 Font Number M Font Name M X Resolution - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 192
Font Descriptor Size (minimum 80) 2 Header Format (10) Font Type 4 Style MSB Reserved 6 Baseline Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Height 34 Text Width 36 First Code 38 Last Code 40 Pitch Extended Height Extended 42 Cap Height 44-47 Font Number - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 193
Table 11-4 Format 10 Font Header (for Intellifont Bound Scalable) (continued) 48-63 Font Name M 64 Scale Factor 66 X Resolution 68 Y Resolution 70 Master Underline Position 72 Master Underline Thickness (Height) 74 OR Threshold 76 Global Italic Angle Desc. Global Intellifont Data Size Size-2 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 194
36 Reserved 38 Number of Contours (Characters) 40 Pitch Extended Height Extended 42 Cap Height 44-47 Font Number M 48-63 Font Name M 64 Scale Factor 66 X Resolution 68 Y Resolution 70 Master Underline Position 72 Master Underline Thickness 74 OR Threshold 76 Global Italic Angle 78-85 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 195
Intellifont Data Size M n Copyright (optional) M Reserved (0) Checksum Table 11-6 Format 15 Font Header (for TrueType Scalable Fonts) Byte 15 (MSB) 87 0 Font Descriptor Size (minimum 72) 2 Header Format (15) Font Type 4 Style MSB Reserved 6 Baseline Position 8 Cell Width 10 Cell - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 196
38 Last Code/Number of Characters 40 Pitch Extended Height Extended 42 Cap Height 44-47 48-63 64 Font Number M Font Name M Scale Factor 66 Master Underline Position 68 Master Underline Thickness 70 Font Scaling Technology Variety 72 Desc. Size # - 2 [additional data may be inserted here - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 197
Table 11-7 Font Header Field Data Type Notation (continued) (SI) (ULI) (SLI) (ASCxx Format Values Value 0 10 11 15 20 Format PCL Bitmap Intellifont Bound Scalable Intellifont Font Type Bound font. Character codes 32 to 127 [decimal] are printable. Bound font. Character codes 32 to 127 [decimal] - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 198
255 are printable, except 0, 7 to 15, and 27 [decimal] (see note below). 10 Unbound font. Character codes correspond to HP MSL numbers (for Intellifont unbound scalable fonts). 11 Unbound font. Character codes correspond to Unicode numbers (for TrueType unbound scalable fonts). Access to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 199
Table 11-11 Value Appearance Width (multiply by 4 for StyleWord partial sum) 0 Normal 1 Condensed 2 Compressed or Extra Condensed 3 Extra Compressed 4 Ultra Compressed 5 Reserved 6 Extended or Expanded 7 Extra Extended or Extra Expanded Table 11-12 Value Structure (multiply by 32 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 200
bits (15 - 10 dpi). Intellifont Scalable - Specifies a Y-coordinate in the design window (refer to Figure 11-2.) TrueType Scalable - Baseline Position must The cell width range is 1 to 65535. Bitmap Font - Specified in PCL coordinate system dots. Scalable Font - Specified in design units. Cell Height - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 201
Bitmap Font - Specified in PCL coordinate system dots. Scalable Font - Specified in design units. Figure 11 font header; otherwise they are discarded as they are downloaded. 0 = portrait (0 degrees; the orientation of the raster scan of the printer) 1 = landscape (90 degrees counterclockwise) 2 = - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 202
Font - set to zero. Hewlett-Packard recommends that bitmap soft fonts be designed in portrait (0°), using the paper motion and raster scan direction of the HP LaserJet Plus and LaserJet series II printers. The HP LaserJet IID, IIP, 2000, and PCL 5 LaserJet printers rotate the fonts to match the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 203
through "Z." "Q" is reserved for use with HP "Specials" symbol sets and is not recommended This field must have a value of 56 for a type 10 or 11 font (unbound Intellifont scalable) to be valid. a control code Space is determined by the pitch value, unless an HMI command is received following the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 204
to points, is used as the height characteristic value of the font. A PCL point is 7--1-2-- (0.01389) inch. It combines with Height Extended to specify the of the font in 1024th-dot (fonts designed at 300 dpi). For example, a 10 point font at 300 dpi has a height of 166 quarter-dots (radix dots) - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 205
Normal 2 Expanded 3 Extra Expanded Additional width types may be added by HP. Style LSB (UB) The least significant byte (LSB) of the ) Specifies the thickness of the strokes used in designing the font. The supported stroke weight values are -7 through 7. The thinnest stroke available is -7; - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 206
, is described first. Then a previous field, supported in earlier printers, is described. Current Usage In the LaserJet 4 printer version of this field, an unsigned short integer is assembled from the two unsigned bytes of data. Printers, when seeking to match a typeface request with available - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 207
Adobe Systems Inc. = 6-15 (Reserved) Typeface Family Number - Bits 11 - 0 This value is between 0 and 4095. See Appendix C in the PCL 5 Comparison Guide. Typeface Family Values are calculated according to the following formula: Example The HP typeface number for Agfa Dom Casual typeface is 4157 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 208
supported the LaserJet IIP, IID and LaserJet III family printers. It consisted of the Typeface Least Significant Byte (LSB; the original, one-byte typeface value used prior to the LaserJet IID printer 10 Adobe Systems Inc. 3,5,7,9,11-15 (Reserved) Vendor-Version The Vendor-version (bits 10 and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 209
they are being deleted. Refer to Appendix C in the PCL 5 Comparison Guide for a list of typeface families and their typeface base values. For future 0-63 (the lower six bits of the style field) are ignored by the printer for bitmap fonts. However, the upper two bits (bits 6 and 7) are used - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 210
12 Script Broken Letter 13-63 Reserved Values for bits 6 & 7 64 Sans Serif 128 Serif 192 Reserved Quality (UB) This field specifies the quality of the font. Table 11-20 Quality Values Value 0 1 2 Quality Data processing (draft) Near Letter Quality Letter Quality Placement (SB - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 211
Underline Position (Distance) (SB) Bitmap Font - Specifies the distance from the baseline to the top dot row of the underline in font design dots. Zero specifies an underline position at the baseline. A positive value specifies an underline position above the baseline. A negative value specifies an - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 212
an image if one is defined, otherwise a Space control code is executed. Currently, PCL 5 LaserJet printers use the Font Type field to determine the first and last codes of the symbol set, as shown below: Table 11-22 Font Type 0 1 2 10 11 First Code../..Last Code 32/127 32/127 - 160/255 0/255 Set - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 213
which extends the height an extra eight bits. The value of this field is in font design units. For example, a 10 point font designed at 300 dpi would points, of the height of the body of the font. The Cap Height data is represented as the product of the cap height percentage and the maximum unsigned - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 214
format or has been converted (1) from another format. The remaining lower seven bits contain the ASCII decimal value for the first initial of the font vendor's name (this is assigned by Hewlett-Packard). The following initials have been assigned: Table 11-23 Initial A B C H L M HexValue Vendor - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 215
which you may assign a font name. The font name is used in the Typeface List (or Font List printout), under Name or Typeface (if the printer does not have a name string assigned to the typeface family code in its font selection table). X Resolution (UI) The X Resolution field is the pixel resolution - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 216
. It is used for TrueType and Intellifont scalable soft fonts. Master Underline Position (SI) The Master Underline Position is the top of the PCL floating underline with respect to the baseline in design units. For scalable fonts, the Master Underline Position field replaces the 1-byte Underline - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 217
which the missing pixel recovery process is switched on in Intellifont scaling and rasterization. The Data refer to Intellifont Scalable Typeface Format. Character Complement (Array of UB) This 8-byte field qualifies the compatibility of a type 10 or 11 font with various character sets. Each bit - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 218
Font Data section immediately following the descriptor data. See "Segmented Font Data" later in this chapter . Table 11-25 MSL Symbol Index Bit Field 58 Unicode Symbol Index Bit Field Designated Use 32-63 Miscellaneous uses (South Asian, Armenian, other alphabets, bar codes, OCR, Math, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 219
order. Table 11-28 Unicode Symbol Index Character Complement Bits Bit Value 31 0 if font is compatible with 7-bit ASCII; 1 otherwise. 30 0 if font is compatible is compatible with Desktop Publishing character sets (e.g., Windows 3.1 Latin 1, DeskTop, MC Text); 1 otherwise. EN Font Header - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 220
font is compatible with Code Pages (e.g., PC-8, PC 850, PC-Turk, etc.); 1 otherwise. 2,1,0 110 if font is arranged in Unicode Symbol Index order. There are no invalid Character Complement field values. Examples of values for the field include: Table 11-29 Bit Field Designated Use Value (hex - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 221
64 through the reserved byte, equals a value which, when divided by 256 (modulo 256 arithmetic), results in a remainder of 0. For example, if the sum = 10,234 then, 10 segment contains three parts: a Segment Identifier, Segment Size, and Data Segment. The Segmented Font Data section is terminated by - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 222
Size (0) # - 2 Reserved Checksum x = Font Descriptor Size. # = Font header length (as defined in Font Header command). Segment Identifier (UI) Each entry in the Segmented Font Data Section has its own unique identification number. The following values are defined: Table 11-31 Value Mnemonic - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 223
Data Segments AP (Application Support Segment) The definition of this segment is reserved. CC (Character Complement) This field has the same form (i.e., 8 unsigned bytes) and function as does the Character Complement of Format 11 fonts. The Character Complement field should be present with type 10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 224
Files. PF (PS-Compatible Font Name) Reserved for future use. XW (x-windows font name) This ASCII field contains standard X-Windows font names. Checksum The value of this byte, when added to the sum of all of the bytes from byte 64 of the descriptor through the Reserved byte, should equal 0 in modulo - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 225
scalable font. Bitmap Example To download a bitmap font header for a portrait HP Roman-8, 10 pitch, 12 point, upright, medium, Courier font, with an ID number of one, send: EC*c1D (set Font ID to 1) EC)s#W (# = 64 bytes of font descriptor data + x bytes of optional data) An example of the bitmap - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 226
∅ Underline Position -10 ∅ Underline Thickness 3 30.00 Dots) First Code 33 ∅ Last Code 254 ∅ Pitch data ....Application Support ....(optional) }= x bytes added to header data Intellifont Scalable Example To download an Intellifont scalable header for an HP - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 227
LSB Stroke Weight Typeface LSB Typeface MSB Serif Style Quality VALUE 80 10 1 0 0 5380 0 0 0 1 277 2602 2000 4009 0 0 0 5 16 134 0 DESCRIPTION Bytes Scalable Font Format Eight Bit Y reference in Design Window ..not defined for Intellifont ..not defined for Intellifont ..not defined for scalable - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 228
0 ..not defined for Intellifont Text Width 4391 Width of En Space First code 33 Last Code 273 Compound Pieces Present (n255) Pitch Extended 0 ..not defined for scalable Thickness OR Threshold 176 Global Italic 0 Angle Global Intellifont 112 Data Size 11-46 Soft Font Creation EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 229
Table 11-33 (continued) ....Global Intellifont Data .... ....Copyright Statement (optional) .... ....Application Support (optional) .... }= 112 bytes added to header data }= x bytes added to header data }= x bytes added to header data EN Font Header Examples 11-47 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 230
(see Character Definition Command). Notes A unique character code, using the Character Code command, must be designated prior to the download of a character descriptor and data. If the font being downloaded already contains a character with this code, the existing character is deleted during the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 231
a given character equals its symbol index value. For TrueType fonts, a special code must be used to download glyphs which never stand alone as characters. FFFF (hex) should be used for this purpose. Example To designate the character code for an ASCII lower-case "p", send: EC*c112E EN Character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 232
and Data command is used to download character data blocks to the printer for both bitmap and scalable fonts. E C ( s # W [character descriptor and data] Descriptor and Data Format for PCL Bitmap Fonts. For Intellifont scalables, refer to "Character Descriptor and Data Format for Intellifont - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 233
Character Descriptor Formats Character definition formats for PCL Bitmap, Intellifont Scalable and TrueType Scalable fonts are shown on the following pages. Note The following notation is used to define the data type of each field in the character descriptors. Table 11-34 Character Descriptors/ - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 234
match that of the Font Header. Table 11-37 Value Format 4 LaserJet Family (Raster) 10* Intellifont Scalable 15* TrueType Scalable * These are described later in this chapter. If the format number is different from that expected by the device, the character is discarded. 11-52 Soft Font - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 235
. It specifies the size of the character descriptor in bytes. The descriptor size used by the HP LaserJet printer family for bitmap fonts is 14. Class (UB) Specifies the format of the character data. For bitmap fonts only values 1 and 2 are used, as described below. Table 11-38 Value Class - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 236
printer's raster scan (see the Portrait Bitmap Character Data Example, at the end of this chapter). Zeroed bits data is received, it is discarded; if less data is received, the character consists of only the data downloaded. Class 2 - Compressed Bitmap Data For a compressed bitmap character, the data - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 237
Figure 11-5 Class 2 Character Data EN Character Descriptor Formats 11-55 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 238
position (see Figure 11-6 and Figure 11-7). PCL 5 printers support kerning (both negative left and right side bearings) of both fixed-pitch and proportionally-spaced fonts. Note that large offsets could place the character off the printable area of the page causing the character to be clipped. The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 239
page coordinate system is incremented after printing the character. This value is only used by the printer when the font is proportionally spaced. The legal range for delta X is -32768 to 32767 quarter units. Character Data Character data is a string of bytes containing the dot-per-bit - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 240
Figure 11-6 Portrait Character Example 11-58 Soft Font Creation EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 241
Figure 11-7 Landscape Character Example EN Character Descriptor Formats 11-59 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 242
1. Continuation is supported for classes 1, 2, 3 and 15 only. 2. These bytes appear only on the last continuation. Table 11-41 Intellifont Scalable Contour Data Format Byte 15 (MSB) 87 (LSB) 0 4 Contour Data Size 6 Metric Data Offset 8 Character Intellifont Data Offset 10 Contour Tree Offset - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 243
Scalable Compound Character Descriptor and Data Format Byte 15 (MSB) 87 (LSB) 0 0 Format (10) Continuation (0) 2 Descriptor Size Class (4) 4 Compound Character Escapement 6 Number of Components 8 Component List M see Table 11-46 for Component List Data -2 Reserved Checksum EN Character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 244
descriptor and data. The format number for Intellifont scalable fonts is 10. Table 11-44 Value Format 4* LaserJet Family (Raster) 10 Intellifont Scalable 15* TrueType Scalable * These are described elsewhere in this chapter. If the format number is different from that expected by the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 245
in Table 11-43. The compound descriptor allows combining two different characters to produce a single compound character. Contour Data Size (UI) The size of the contour data including the size of this field. For a detailed description of this field, refer to Intellifont Scalable Typeface Format - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 246
Data relative to the address of the Contour Data Size field. XY Data Offset (SI) The offset to the XY data relative to the address of the Contour Data Size field. Metric Data For information about Metric Data of this manual. Checksum This is a checksum of all the contour character data. The checksum - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 247
character. Component List This is a list of component descriptions. The list contains Number code may be greater than the last code of the symbol set that is implied by the font type since a compound character can include components that are not part of the symbol set. Character Descriptor and Data - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 248
size as defined in Character Definition command. Table 11-48 Byte 15 (MSB) 87 (LSB) 0 0 Format (15) Continuation (0) 2 Descriptor Size Class (15) 4 [additional descriptor data may be inserted here] 2 + Character Data Size Desc Size 4 + Glyph ID Desc Size 11-66 Soft Font Creation EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 249
) This is the first byte of every character data block header. It specifies the format for character downloading. The number 15 designates the TrueType character format. Table 11-50 Value Format 4* LaserJet Family (Raster) 10* Intellifont Scalable 15 TrueType Scalable * These are described - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 250
(and last) byte of every character data block header. It specifies whether the following data is the first (0) data block of a new character definition, or a continuation (1) block for a character definition which has already been received by the printer. Because the value field in a Character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 251
The value of Character Data Size plus Descriptor Size plus 4 (for the Format, Continuation, Reserved and Checksum bytes) will never be less than the value # given in the character download command. If the sum is exactly equal to #, then no continuation block is to be expected for the given character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 252
is 31 dots, 124 bytes of Character Data for a Class 1 character is needed (4 × 31 = 124). No continuation block is to be expected. Table 11-52 Character Format, Continuation, and Descriptor FIELD NAME Format VALUE 4 DESCRIPTION LaserJet Printer Family Continuation 0 Not A Continuation Record - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 253
Table 11-53 Portrait Character Data Example Dot Row 01 Bit Map 00000000 00001111 11000000 00000000 02 11111100 01111111 11111000 00011110 00000000 00000011 10000000 09 00011110 00000000 00000011 11000000 10 00011100 00000000 00000001 11000000 11 00011100 00000000 00000001 11000000 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 254
10 pitch, 12 point, upright, medium, Courier lower-case "p", send: EC*c112E (112 is the decimal character code for an ASCII lower-case "p") EC(s120W [character descriptor and data] Table 11-54 Character Format, Continuation and Descriptor FIELD NAME VALUE DESCRIPTION Format 4 LaserJet Printer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 255
Table 11-55 Landscape Character Data Example Dot Row Bit Map 01 00000000 01111110 00000000 00000000 02 00000011 11111111 11000000 08 01110000 00000000 00001110 00000000 09 11100000 00000000 00001111 00000000 10 11100000 00000000 00000111 00000000 11 11100000 00000000 00000111 00000000 12 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 256
Table 11-55 Landscape Character Data Example (continued) 25 01110000 00000000 00000000 00001110 112 0 26 01110000 00000000 00000000 00001110 112 0 0 14 0 14 11-74 Soft Font Creation EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 257
sequence to print the letterhead. HP-GL/2 commands are not supported within macros on all HP LaserJet printers. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide for specifics. Macros eliminate the need to download the same information repeatedly, thus saving - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 258
Hewlett-Packard provides a service to assist you by developing these custom products. For information contact: Hewlett-Packard Boise Printer Division Attention: Product Specials 11311 Chinden Blvd. Boise, ID 83714 (208) 323-3684 12-2 Macros EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 259
Macro Control command, EC&f0X, indicates the following commands and data are to be stored as a macro. Macro data z z z Macro data Stop MacroDefinition Escape sequences, control codes, HP-GL/2 commands and text required to perform the desired operation. Macro Control command, EC&f1X, identifies the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 260
Control command. When a macro is executed, it begins performing its commands using the current modified print environment. Changes made HP-GL/2 commands are not supported within macros on all HP LaserJet printers. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 261
values: Table 12-2 PCL CONTEXT: Page length Paper source Page size Number of copies Orientation Cursor position stack Registration HP-GL/2 CONTEXT: Current Pen Position Hard Clip Limits Logical Page Boundaries Line Attributes Scaling Points Soft Clip Window Fill Attributes Refer to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 262
Macros There are several mechanisms provided by PCL macro control for explicit deletion of macros described later in this chapter. Both temporary and permanent macros are deleted from memory whenever the printer's power is turned off. Macro ID The Macro ID command specifies an ID number for use - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 263
ID specified) 9 - Make macro temporary (last ID specified) 10 - Make macro permanent (last ID specified) Notes EN A macro printer reset command (ECE or UEL) is not allowed in a macro. HP-GL/2 commands are not supported within macros on all HP LaserJet printers. Refer to the "PCL Feature Support - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 264
. Refer to Appendix E of the PCL 5 Comparison Guide for the macro cartridge priority.) 2 SIMM macros. SIMM 1=highest, then SIMM 2, etc. Example To define a macro with an ID of 7, send: EC&f7y0X z z z escape sequences, control codes, and data z z z To stop the macro definition, send: EC&f1X To - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 265
] • • • EC*b60W [Raster data] EC*rC EC&a540h780V EC(1X ABC Corp. Post Office Box 15 Specify the Macro ID as one. Start Macro Definition. Position logo at (540, 360) decipoints in the PCL coordinate system. Set graphics resolution to Start raster image of logo. Send the first raster line. • • • Send - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 266
line of text at (540, 1200) decipoints. EC&f1X Stop Macro Definition. This macro now can be executed, called, or enabled for automatic overlay. 12-10 Macros EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 267
printer's predefined shading or cross-hatch patterns, or with a user-defined pattern. Images include any raster graphic, such as one created with PCL The print model features, listed below, are illustrated in Figure 13-1 and Figure 13-2, and described on the following pages. z Pattern z Source Image - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 268
printer's internal predefined eight shading patterns (see Figure 13-4) or one of the six cross-hatch patterns (see Figure 13-5), or a user-defined pattern. When printing a page or the printer is reset. A reset returns the current which the black ("1" bits) are replaced by (the "0" bits) as they - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 269
Pattern Transparency Mode The transparency or opaqueness of the white pixels in the pattern. When set to 0 (transparent), these pixels have no effect on the destination; when set to 1 (opaque), they are applied through the black pixels of the source pattern to the destination. Figure 13-2 Opaque - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 270
Figure 13-3 Effect of Transparency Modes on Images 13-4 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 271
image. EC*v#N and/or EC*v#O Select Specific Pattern ID and Select Pattern Pattern ID EC*c#G EC*v#T (redefines current pattern) Download Page Data (Source Image data) Raster image/characters Return to regular print mode Default current pattern and transparency modes: EC*v0T (100% black pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 272
Table 13-1 (continued) • • End of Page Data Source Transparency Mode Command The Select Source Transparency Mode command sets the source image's transparency mode to transparent or opaque. E C * v # N # 13-3 for an explanation of the effects of transparency. 13-6 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 273
Pattern Transparency Mode Command The Pattern Transparency Mode command sets the pattern's transparency mode to transparent or opaque. E C * v # O # =0 - Transparent 1 - Opaque Default Range =0 = 0, 1 (other values cause the command to be ignored) A transparency mode of "0" (transparent) - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 274
= 1-2% shade # = 1 - Pattern #1 3 thru 10 = 3-10% shade 2 - Pattern #2 11 thru 20 = 11-20 supported on all LaserJet family printers. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide HP-defined shading patterns and cross-hatched patterns, respectively. 13-8 The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 275
is used for both the Select Pattern and Area Fill graphics (it is also described in Chapter 14, PCL Rectangular Area Fill Graphics). It is duplicated here for convenience. For user-defined patterns, this command, sent prior to downloading a user-defined pattern, assigns an ID pattern number to the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 276
Figure 13-4 Shading Patterns 13-10 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 277
Figure 13-5 Cross-Hatch Patterns EN Pattern ID (Area Fill ID) Command 13-11 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 278
black (black rule), only the Select Current Pattern command is required. Once a current pattern is selected, that pattern applies to all images placed on the page until a new pattern is selected. 13-12 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 279
downloaded to the printer and controlled using three new commands: z User-Defined Pattern EC*c#W [data] z Set Pattern Reference Point EC*p#R z Pattern Control EC*p#Q - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 280
. The pattern reference point may be shifted more than once for as many fill areas as there are on a page (the area must be filled before the tile point is moved for the next fill area). Figure 13-8 shows upper left corner of each area and the area filled separately. 13-14 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 281
Figure 13-8 Moving Pattern Reference Point for Pattern Filling EN User-Defined Pattern Graphics 13-15 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 282
downloading the binary pattern data that defines the user pattern. E C * c # W [pattern data] # =Number of pattern data Continuation (0) Reserved (0) LSB-0 With the introduction of the LaserJet 4 printer, user-defined patterns can be printed either 300 or 600 13-16 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 283
Header 4 Height in Pixels 6 Width in Pixels 8 X Resolution 10 Y Resolution 12 Pattern image M The Master X and Master Y 1) This field, byte 1, must be set to "0." (This byte is for future printer support and does not currently provide any continuation operation.) Pixel Encoding (Byte 2) This field, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 284
and 7, identifies the number of pixels (width) of the pattern. Pattern Image This field contains the raster data for the pattern. Master X Resolution (UI) The Master X Resolution field is the pixel resolution in the Y scan direction at which the pattern was designed. 13-18 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 285
first step is to design the base pattern triangle (in this case, using 64 bytes of data). The base pattern binary data is shown below: 11111111111111111111111111111111 01111111111111111111111111111110 00111111111111111111111111111100 00011111111111111111111111111000 00001111111111111111111111110000 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 286
(01 hex) Byte 3 - Reserved = 0 (00 hex) Byte 4/5 - Height in Pixels = 0 / 16 (00 / 10 hex) Byte 6/7 - Width in Pixels = 0 / 32 (00 / 20 hex) Byte eight begins the first bytes of binary data. The PCL code below downloads the user-defined pattern and assigns it an ID number of 3. 1 Specify the pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 287
Send the pattern header and binary data: Table 13-6 00 00 01 00 00 10 00 20 FF FF FF FF data rows above. The user-defined pattern downloaded in the previous example is printed within a rectangular area in Chapter 14 under "Rectangular Area Fill Examples." In the previous example, the raster data code - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 288
Set Pattern Reference Point command causes the printer to tile patterns with respect to the reference point is the upper left corner of the logical page at the top margin (position 0,0). If the Set (refer to "Logical Page Orientation Command" in Chapter 5 of this manual). This command applies to user - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 289
Pattern Control Command The Pattern Control command provides a means for manipulating user-defined patterns. E C * c # Q # =0 - Delete all patterns (temporary & permanent) 1 - Delete all temporary patterns 2 - Delete pattern (last ID # specified) 3 - Reserved 4 - Make pattern temporary (last - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 290
13-24 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 291
supported on all LaserJet family printers. Refer to the "PCL Feature Support Matrix" in the PCL 5 Comparison Guide. The first step in filling an area, if using a user-defined pattern, is to download you have not done so already, download the binary pattern data (User-Defined Pattern Command - EC*c#W - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 292
Area Command - ECc#P).1 This ends the procedure and prints the patterned area. An area's width extends in the positive X-direction of the PCL coordinate system, and the height extends in the positive Y-direction. The Pattern Transparency Mode controls how a pattern fills a rectangular area. Pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 293
converts the specified width to printer dots by rounding up to an integral number of dots. For example, 5 decipoints, which corresponds to 2.08 dots in 300 dpi mode, is converted to 3 dots. Horizontal Rectangle Size (PCL Units) Command This Horizontal Rectangle Size command specifies the rectangle - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 294
converts the specified width to printer dots by rounding up to an integral number of dots. For example, 5 decipoints, which corresponds to 2.08 dots in 300 dpi mode, is converted to 3 dots. Vertical Rectangle Size (PCL Units) Command This Vertical Rectangle Size command specifies the rectangle - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 295
# G Table 14-1 Selecting Shaded Patterns # = 1 thru 2 = 1- 2% shade 3 thru 10 = 3-10% shade 11 thru 20 = 11-20% shade 21 thru 35 = 21-35% shade 36 thru Not supported on all LaserJet family printers. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide for - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 296
Note There are six HP defined cross-hatch patterns. To specify a crosshatch pattern type, use a value between 1 and 6 to select a pattern as shown in Figure 14-2. For user-defined patterns, this command, sent prior to downloading a user-defined pattern, assigns an ID pattern number to the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 297
Figure 14-1 Shading Patterns EN Pattern ID (Area Fill ID) Command 14-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 298
Figure 14-2 Cross-hatch Patterns 14-8 PCL Rectangular Area Fill Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 299
downloaded by the User-Defined Pattern command. Current Pattern - fills the rectangular area with the current pattern. Notes The order in which data (patterns/rules, text, raster) is received is the order in which it is processed during the rasterization of the page 13, The PCL Print Model. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 300
transparency mode affects the rectangular fill area. A white fill "erases" any data placed within the rectangular area prior to receipt of the white fill, regardless of the transparency mode settings. Data placed in a previously erased area is visible. 14-10 PCL Rectangular Area Fill Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 301
for value fields 0 (black fill), 2 (shaded fill), 3 (cross-hatch fill), or 5 (current pattern fill) of the Fill Rectangular Area command. The "0" bits of the area fill are either applied (opaque) or ignored (transparent) based on the transparency mode setting (see Figure 14-3). When a value field of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 302
Figure 14-3 Effect of Transparency Modes on Rectangular Areas 14-12 PCL Rectangular Area Fill Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 303
at 300 units-per-inch), then white fill a small area inside the black rectangle, perform the following steps. 1 1. Position the cursor: EC*p300x400Y This moves the cursor to PCL Unit position (300, 400) within the PCL coordinate system. 2 2. Specify the width of the rule: EC*c900A This sets the rule - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 304
900 by 1500 Unit 25% shaded rectangle (3 inches by 5 inches at 300 units-per-inch), perform the following steps. 1 Position the cursor: EC*p300x400Y This moves the cursor to PCL Unit position (300, 400) within the PCL coordinate system. 2 Specify the width of the rectangle: EC*c900A This sets the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 305
3 Specify the height of the rectangle: EC*c1500B This sets the rectangle to 1500 PCL Units (5 inches at 300 units-per-inch). 4 Specify the Pattern ID: EC*c25G This sets the Pattern ID to 25. 1 Print the rectangular shaded area: - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 306
by 5 inches at 300 units-per-inch), filled with a horizontal cross-hatch pattern, perform the following steps: 1. Position the cursor: EC*p300x400Y Moves the cursor to PCL Unit position (300,400) within the PCL coordinate systems. 2. Specify the width of the rectangle: EC*c900A Sets the rectangle - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 307
to the printer. For this example we will print the pattern of triangles which was downloaded in the example in Chapter 13, under "User-Defined Pattern Command." The following commands define a 600 PCL Unit square rectangular area, select ID number 3, and print the user-defined pattern associated - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 308
Sets the rectangle width and height both to 600 PCL Units (2 x 2 inches at 300 Units/inch). 3 Specify the Pattern ID: EC*c3G Sets the Pattern ID to 3. 4 Print the user-defined pattern-filled area: EC* - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 309
. Pictures in newspapers or on television screens (also, a page printed by this printer) are examples of raster images. The PCL language includes commands for printing raster graphic images. These commands enable the LaserJet printer to receive binary data and print it as a raster image. The binary - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 310
the raster area feature provides some other raster reduction techniques which utilize a defined raster area. The raster area is defined by the Y-offset or number of rows for the printer to fill with zeroed rows. This provides a reduction in data for increased efficiency. Trailing zeroed full rows - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 311
conjunction with the raster compression techniques, a considerable savings in data can be realized. This results in a saving of host storage and data transmission time. However, these reduction techniques do not reduce the amount of printer memory required for page formatting. EN Introduction 15-3 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 312
Raster Graphics Command Sequence PCL raster commands include: Start Raster Graphics and End Raster Graphics commands, Transfer Raster Data by Row, Raster Compression, Raster Presentation, Raster Resolution, Raster Height and Raster Width (which define the raster area), and Raster Y Offset commands. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 313
true modes. Once specified, the printer remains in that mode unless explicitly changed by issuing the command again, or reset to default values by a soft reset, self test, font printout, or power cycle. Only raster data appearing within the intersection of the logical page, the printable area, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 314
be printed at various resolutions. This command designates the resolution of subsequent raster data transfers in dots-per inch. E C * t # R # = 300 dots-per-inch requires 540,000 bits. When configured for 300 dpi resolution, the printer automatically expands raster graphics transferred at - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 315
data always print at the maximum resolution, regardless of the resolution setting. When configured for 600 dpi resolution, the printer . illustrates how a single bit is translated into the corresponding printed dots in various graphics resolutions when the printer is configured for 600 dpi. Figure - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 316
indicates that the raster graphics will be printed along the width of the physical page, regardless of logical page orientation. In portrait orientation, a raster row is printed in the positive X-direction of the PCL coordinate system and a subsequent raster row is printed beginning at the next dot - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 317
Table 15-2 (continued) 3 landscape 3 reverse landscape 50 dots in from the logical page top bound 50 dots in from the logical page top bound Figure 15-5 Raster Graphics Presentation Mode for Portrait Orientation EN Raster Graphics Presentation Mode Command 15-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 318
Figure 15-6 Raster Graphics Presentation Mode for Landscape Orientation 15-10 Raster Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 319
to (logical page length - current Y-position of the cursor) This command fills the raster area to the full raster height with zeroed rows. Unspecified rows map to either white or transparent depending on the source transparency mode. When a Transfer Raster Data command is received that causes any - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 320
Upon receiving an End Raster Graphics (EC*rC) command, the cursor position is set to the left graphics margin of the next raster row after the raster height boundary. Figure 15-7 Maximum Raster Height 15-12 Raster Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 321
to implicitly tell the printer to pad raster rows that are not specified for the full raster width with zeros. Unspecified data maps to either white or transparent depending on the source transparency mode. When a Transfer Raster Data command is received that specifies a row of data that is longer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 322
Graphics command identifies the beginning of the raster data and also specifies the left graphics margin. left graphics margin is at the default left margin of the page (X-position 0). A value of 1 specifies that the left Raster Graphics command is received by the printer, raster graphics resolution, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 323
Raster Graphics Mode, PCL commands and text imply an End Raster Graphics (EC*rC) except for the following commands: z Transfer Raster Data z Set Raster Resolution An implied End Raster Graphics resets the Raster Compression Method 3 seed row, but does not reset the Raster Compression Method nor the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 324
Method command allows you to code raster data in one of four compressed bit 0 corresponds to the eighth dot, and so on. Note Compressed data formats allow for efficient transfer of data from the host system to the printer. However, compressed data formats do NOT reduce the amount of printer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 325
of methods 0 and 1. A control byte precedes the raster data (pattern bytes). The control byte identifies whether the pattern byte(s) twos complement is computed as follows. The binary of 3 is 00000011. Complement each bit to get 11111100, then add one to this value to produce 11111101, the twos - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 326
minus 3 = 253. A zero or positive value in the control byte means that the subsequent byte or bytes are non-replicated bytes of data. The value of the control byte plus one indicates the number of data bytes that follow. For example, a control byte of 0 means the following 1 byte is literal raster - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 327
show how a raster row can be coded using run-length and TIFF compression methods. Note that the compression examples use characters to represent the binary data stream. Table 15-6 Byte #1 #2 #3 #4 #5 #6 #7 Number Bits 01010101 01010101 01010101 01010101 01000001 01010100 01010100 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 328
row, then the entire row must be sent as the delta (not very efficient); if only one bit is different, then only one byte is identified and sent. To reassemble the raster data rows, the printer takes the current row (referred to as the seed row) and makes the changes indicated by the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 329
upper three bits identify the number of replacement (delta) bytes (which can be 1 to 8 bytes). The lower five bits identify the replacement bytes and the offset is 7, then the replacement bytes replace byte 7, 8, 9, 10, and 11 (the five bytes beginning at byte 7 from the seed row). If there - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 330
bits shows an offset larger than 31: Figure 15-10 The total offset 414, which is the printer for use by delta row compression. The delta compression replacement bytes are applied to the seed row to create the new row. This new data row is printed and becomes the new seed row. The seed row is updated - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 331
row to zeros. (Remember, non-graphic cursor moves have the same effect as an end graphics command.) If the byte count of the Transfer Raster Data command value field is less than the number of bytes that can be replaced, the byte count has precedence. Also, if the last byte is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 332
the delta row compression method and the 2W indicates that 2 bytes of data to follow. The first three bits of the first data byte, the command byte, signify a single byte replacement (all three bits are 0). The next five bits indicate an offset of 1 byte from the current position. The replacement - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 333
block (all rows). For the other compression methods, the Transfer Raster Data command is sent at the beginning of each row and the value field is the number of compressed bytes and not the size of the uncompressed data). To transfer greater than 32,767 bytes, send multiple blocks. Adaptive - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 334
65,535; however, the image is clipped to the logical page. Thus, the value of these bytes should not exceed the maximum number /rows> bytes following the command byte. The empty row operation resets the seed row to zero and updates the cursor position. Duplicate Row A command byte of 5, duplicate - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 335
Note EN Adaptive Compression Operation Hints Some HP LaserJet printers perform internal compression techniques to support full-page graphics. Refer to Chapter 1 of the PCL 5 Comparison Guide for specifics. z The compression methods cannot be mixed within one raster row. A raster row must be - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 336
upon receipt and completion of each raster block. z For method 3 - If the row length terminates the data before the control byte value is satisfied (literal byte count greater than row length), the data following the control byte (if any) is printed as text. The cursor is incremented. z For method - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 337
at the left raster graphics margin. Within the raster data, each bit describes a single dot. The most significant bit (bit 7 is the most significant, bit 0 is the least significant) of the first byte of data corresponds to the first dot within the row. If a bit is set to 1, the corresponding dot is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 338
HP LaserJet IIID printers. supported by the HP LaserJet III or Use the EC*rB End Raster Graphics command to terminate raster graphic data transfers for these printers. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide for specific printers which support these - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 339
the left graphics margin to the current X position (300). 5. Transfer the raster data to the printer: Divide the image into dot rows and transfer each dot row to the printer as a string of bytes, as illustrated on the following page. 6. Signify the end of the raster graphic image transfer: EC*rC - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 340
-11 Example of Raster Graphic Image Data (continued) 6 00000000 00000000 11111100 7 00000000 00000000 11111110 8 00000000 00000000 11111111 9 00000000 00000000 11111111 10 11111111 11111111 11111111 11 11111111 11111111 brackets and commas are not part of the raster data command; they are used - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 341
Figure 15-11Example of Raster Graphic Image Data EN Raster Graphics Example 15-33 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 342
15-34 Raster Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 343
printer such as: available printer (user) memory, current available fonts and symbol sets, and the ID numbers of downloaded macros and user-defined patterns to verify their presence. The contents of this chapter are listed Set z Entity Error Codes z Free Space Command • Memory Status Response • - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 344
a bi-directional driver to receive status response data. In network operations, some printing environments do not support bi-directional communication, such as many printer sharing devices which spool data, and some network operating systems. Applications designed to incorporate PCL status readback - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 345
response sent from printer to host PCL INFO MEMORY TOTAL=100000 LARGEST=25000 Entity Status It is possible to request status for the printer's entities. identifies the left cartridge on a printer with two cartridges; or, unit "1" for location type "downloaded," identifies the temporary fonts (as - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 346
Esc> __v0s0b4157T(21X" Two permanent downloaded fonts exist in the printer: University Roman (4120T) and Dom Casual (4157T). In addition to the normal status responses, if an invalid request is made, the printer returns an error response. Error responses are described under the Inquire Status - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 347
information. The number of status responses a printer can buffer varies from printer to printer. The HP LaserJet 4 printer can store 5 responses. Refer to the PCL 5 Comparison Guide for printer specific information. A status response is returned to the printer I/O port from which it was requested - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 348
PCL" followed by a Carriage Return control code (decimal 13; ) and a Line Feed control code (decimal 10; ). In addition, each remaining line of the response is terminated by a Carriage Return and Line Feed control code Keywords may be added for future printers that are not documented here. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 349
code. Example responses in this chapter for "SYMBOLSETS=" do not list the complete list of internal available symbol sets, only a partial list: "0D,0I,0N,0S,0U,1E,1F,1G,..." The internal symbol sets are printer dependent and may vary from printer to printer. Refer to the PCL 5 Comparison Guide - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 350
is 0 and an Inquire Entity command is received, an error response is generated (refer to the "Status Response Error Codes" section later in this section for additional information). A printer reset returns the location type setting to 0. The printer retains the location type setting. If the Set - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 351
internal All downloaded Temporary downloaded Permanent downloaded All cartridges Highest priority cartridge M Lowest priority cartridge All SIMMs Highest priority SIMM M Lowest priority SIMM Default Range =0 = 0 through n, where n is printer dependent. Refer to the PCL 5 Comparison Guide. * - For - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 352
error response is sent when the Inquire Entity command is received. Inquire Status Readback Entity Command The Inquire Entity command identifies the entity type and causes the printer pages). The entity status and error responses are described on the following pages. 16-10 Status Readback EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 353
shown below. Notice the variation in the keyword lines for the three fonts, listed in order below: Internal, bitmap, Line Printer Internal, unbound scalable, CG Times italic Downloaded, bound scalable, (CG Palacio) Font status: PCL INFO FONTS SELECT="(8U(s0p16.67h8.5v0s0b0T" SELECT=" - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 354
of the font being a bitmap, bound scalable, unbound scalable, soft (downloaded) font, or the location type set to 1 (currently selected). These pitch is listed. For example, the printer's internal scalable Symbol font (proportionally spaced) would be returned as shown below. PCL INFO FONTS SELECT - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 355
to list the available symbol sets and the symbol set sequence is no longer present in the "SELECT=" line. For example, the printer's downloaded bitmap Courier with a font ID of 39 and a downloaded, unbound scalable, Dom Casual typeface with a font ID of 78 would be returned as shown below. PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 356
response would be returned as shown below. PCL INFO FONTS SELECT="(1U(s0p10.00h14.0v0s3b11T LOCTYPE=5 LOCUNIT=1 For example, assume the printer's currently selected font is unbound scalable Dom Casual font with the following characteristics: z downloaded (font ID of 78) z temporary z Roman - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 357
to the Printer Job Language Technical Reference Manual for information on PJL font selection). The "DEFID=" number consists of two parts, a location and an ID number, such as "I 21," where "I" is the location and "21" is the font's internal ID number. The possible locations are listed below: Table - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 358
listed in the font printout. For example, the font extended response for the printer's internal bitmap Line Printer font and a downloaded unbound CG Palacio temporary font would be returned as shown below. PCL as shown below. PCL INFO FONTS EXTENDED SELECT entity value field 1) lists all of the macro - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 359
appear as shown below. PCL INFO PATTERNS IDLIST="88" LOCTYPE=4 LOCUNIT=2 If the current pattern is set to one of the internal HP-defined patterns (no pattern ID number assigned), then no number is available and the response, "ERROR=NONE" is returned. PCL INFO PATTERNS ERROR=NONE EN Entity Status - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 360
for "SYMBOLSETS=" do not list the complete list of internal available symbol sets, only a partial list: "0D,0I,0N,0S,0U,1E,1F,1G,..." The internal symbol sets are printer dependent and may vary from printer to printer; refer to the PCL 5 Comparison Guide for printer specific information. 16-18 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 361
Entity Error Codes If you request out-of-range values in the command value fields, or if the entity is unsupported or does not exist, or if the request is inappropriate, the printer responds with one of four possible errors: z Invalid Entity z Invalid Location z None z Internal Error ERROR=INVALID - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 362
sets and there are no downloaded symbol sets, the following error response would be generated: PCL INFO SYMBOLSETS ERROR=NONE ERROR=INTERNAL ERROR The status response for some requests can be fairly large (such as for fonts). In processing status responses, if the printer runs out of memory, an - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 363
installed in the printer, some memory is not reported for a Free Space command response. This memory is not reported as part of the free memory for a PCL status readback response, however, this memory is available for PCL use. Thus, it is possible for all or part of the downloaded data to be stored - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 364
includes the largest block available and all smaller blocks. Data downloaded to the printer is stored in a block (continuous section of free memory). If the printer does not have a large enough block to store the data, then the data is discarded and a memory error results. 16-22 Status Readback EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 365
response is shown below: PCL INFO MEMORY TOTAL=100000 LARGEST=25000 The above example indicates that the printer has 100,000 bytes of bytes. Memory Error Response If the Free Memory command value field is out of range (not 1), then the memory status response returns an invalid unit error. For example - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 366
all complete pages), it ejects pages "A" and "B" and retains page "C." If the printer received the flush all pages (value field 1) it processes and ejects pages "A," "B," and "C." The printer resumes receiving (processing) data when the last page is processed and ejected from the paper path. Notes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 367
of a status request enables users to identify their status response data. Notes Status readback requests are processed in the order they are received. Status readback responses are returned to the printer port from which they were received. When selecting an echo value, it is important to select - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 368
application sends the Echo command and Free Space command, the printer returns the response to the first Echo command and Free Space command, along with the response to the second request. The application will assume that the response received is the response to its last request. If the application - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 369
accept a downloaded entity, the printer discards the data. Status readback can be used to determine if the printer accepted a downloaded entity. z Status responses are directed to the printer's I/O port from which the request is received. If the status is not read and the printer switches to another - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 370
16-28 Status Readback EN
Part I
Click here to access
Part
I
I
on hp.com.