Introduction
PCL is the printer language that Hewlett-Packard created for its printers in the early
1980s and made famous with the LaserJet. A PCL file is the stream of commands a printer
driver sends to the printer, saved to disk instead: usually from “print to file”, with
the extension .pcl or the generic .prn. Most office laser
printers still understand it, alongside
PostScript.
PCL 5, from 1990, added scalable fonts and the HP-GL/2 vector language. PCL 6, also called PCL XL, is a different, binary language that works like a stack machine; many drivers produce it instead of PCL 5.
Structure
The reference pages cover the escape
sequence syntax and PJL, the PCL 5
commands and the binary PCL XL
language of PCL 6. A PCL XL stream starts, after PJL, with a text line such as
) HP-PCL XL;2;1.
PCL 5 commands are escape sequences: the byte 1B (Escape) followed by
printable characters. Esc E resets the printer, and longer commands give a
group, a value and a final letter, such as Esc&l1O for landscape.
Text between commands is printed as it is. Raster images are sent row by row with
their own commands.
A print job is often wrapped in Printer Job Language (PJL): it starts with the
Universal Exit Language sequence Esc%-12345X, followed by lines starting
@PJL, such as @PJL ENTER LANGUAGE=PCL, which tell the printer
which language follows.
<Esc>%-12345X@PJL JOB
@PJL ENTER LANGUAGE=PCL
<Esc>E
Hello, page one
<Esc>E
<Esc>%-12345X@PJL EOJ
<Esc>%-12345X
The viewer
Drop a PCL file on the page and the explorer lists every command with its meaning, draws every page, opens the HP-GL/2 and PCL XL parts into their instructions, and shows downloaded soft fonts with a sheet of their characters. What the viewer shows says what is drawn exactly and what is approximated. The reference goes deeper on soft fonts and symbol sets and raster graphics and compression.
Divergence from spec
Where HP’s manuals and a key program disagree or the manual is silent, this list says what each does. The programs named are the ones whose source was read: GhostPCL (GhostPDL 10.09.0, built here as an oracle; sources pcl/pl/plsymbol.c, pcl/pxl/pxparse.c, pcl/tools/pxlasm.py and devices/gdevpcl.c read as single raw files). The viewer follows the spec where it is explicit and the program where the spec is silent.
- Roman-8 code 0x7F. The Comparison Guide’s Roman-8 table (B-2, a text table) lists 0x7F as DEL, a control position, but its chart (page B-4, read as an image in round 6) prints a chequered box there, as the other charts do: HP’s own pages disagree. GhostPCL’s Unicode map for Roman-8 (
map_8U_unicode) and for Roman-9 (map_4U_unicode) sends 0x7F to U+2592 (medium shade) so that it draws a glyph, and leaves 0x00 to 0x1F and 0x80 to 0x9F unmapped (0xFFFF). Every other code of 0xA0 to 0xFF, and 0x27 to U+2019 and 0x60 to U+2018, was compared row by row with the page’s Roman-8 table and agrees; Roman-9 equals Roman-8 except 0xBA = U+20AC (Euro), as the manual says. See Roman-8 character by character. - Compression method 9 counting. The Comparison Guide gives the command byte but not how the replacement count is read; GhostPCL’s encoder (
gdev_pcl_mode9compress) repeats one byte count + 2 times. The viewer uses GhostPCL’s reading. - PJL status code 20026. The PJL Technical Reference Manual (bpl13208, Appendix D) has 20026 as “Invalid binary value”; the Addendum (bpl13207) has 20026 as “Out of memory” and adds 20027 and 20028. Both are given on the PJL page; no program source was read to see which printers return which.
- PCL XL stream header byte. The Feature Reference (protocol class 2.0, r18) lists 0x27 (ASCII binding), 0x28 (binary, high byte first) and 0x29 (binary, low byte first) and says the ASCII binding is reserved. GhostPCL’s operator parser (
pxparse.c) has only a big-endian flag and no ASCII mode (the header byte itself is handled in a file that was not read); its assemblerpxlasm.pyreads a text notation whose first line is` HP-PCL XL;3;0(a backtick, 0x60, which the Feature Reference does not list) and writes the binary little-endian stream) HP-PCL XL;…. That notation is a tool format of GhostPDL, not the reserved ASCII binding, and the viewer does not read it. - ROP3 with transparency. The Feature Reference’s formulas and its prose disagree (set bit opaque versus white pixels transparent); the viewer reads the formulas’ operands as opacity masks, which gives the manual’s worked example. See the Not described list.
- The other symbol-set maps. All 55 maps of
plsymbol.c(51 Unicode maps and 4 Zapf Dingbats maps by MSL number) were transcribed by a commented script (scripts/pcl/make-symbol-maps.py, checked back against the source with 0 mismatches) into the viewer modulesymbolsets.js. The Appendix B charts of the Comparison Guide are images, so no text comparison with them was possible. Instead each Unicode map was compared with an independent oracle, the code page tables of Python (cp437, cp850, cp852, cp857, cp858, cp860, cp865, cp775, cp1250 to cp1257, ISO 8859-x, hp_roman8, ASCII). The differences found, which GhostPCL’s tables contain and the viewer therefore follows: C1 codes 0x80 to 0x9F left unmapped where the codec maps them to controls; 0x27, 0x5E, 0x60 and 0x7E drawn as typographic quote, spacing circumflex (U+02C6) and spacing tilde (U+02DC); 0xAD (soft hyphen) sent to U+002D in the ISO and Windows sets; 0xB7 sent to U+2219 and 0xFE (PC sets) to U+25AA instead of U+25A0; 0x20 left unmapped in several PC sets; the Windows Latin 2 map has 0xD0 = U+00D0 where cp1250 has U+0110; the Windows Latin 5 map has 0xF0 = U+20AC (Euro) where cp1254 has U+011F; the ISO Latin 6 map has 0xBD = U+2014 where the codec has U+2015; the Roman-9 map has 0xBA = U+20AC; and the PC Turkish map (9T) differs from cp857 in 49 positions, so the source’s map is not the cp857 table (which of the two a printer uses is not known here). Round 4 looked at the chart pages themselves (the Comparison Guide’s Appendix B charts are images in the PDF; pages B-5 CP1252, B-16 PC-852, B-17 CP1254 Latin 5, B-18 ISO 8859-9 and B-19 PC-Turkish were rendered withscripts/pcl/pdf-page-to-png.swiftand read) and settled these points for the sets whose charts were read:- 0xAD. The charts for 19U (CP1252), 5T (CP1254) and 5N (ISO 8859-9) print a hyphen glyph at 0xAD, as GhostPCL’s U+002D does (the codecs’ soft hyphen draws nothing). Agrees. Not looked at for the other ISO and Windows sets.
- Windows 3.1 Latin 5 (5T) at 0xF0. HP’s chart B-17 has the Latin small letter g with breve (ğ) at 0xF0 (and Ğ at 0xD0), as cp1254; GhostPCL’s
map_5T_unicodehas U+20AC (Euro) at 0xF0. HP and GhostPCL differ: the spec says ğ; the viewer module keeps GhostPCL’s value (a built-in font draws neither with the stroke font), the Euro at 0x80 is in both. - ISO 8859-9 (5N) at 0x80 to 0x9F. HP’s chart B-18 shades 0x80 to 0x9F as control codes (no characters); GhostPCL’s
map_5N_unicodeputs the Euro (U+20AC) at 0x80, and the same Euro at 0x80 is in the 0N and 2N maps. The spec says controls; GhostPCL maps the Euro. - PC-Turkish (9T). HP’s chart B-19 is the cp437 layout with Turkish letters (Ğ ğ İ ı Ş ş) and the Greek and maths characters at 0xE0 to 0xFF (α, ß, Γ, π, Σ and so on), not the cp857 table; GhostPCL’s
map_9T_unicodeagrees with the chart in the positions looked at (0x8D, 0x98, 0x9E, 0x9F, 0xA6, 0xA7, 0xE0 to 0xE4). The 49 differences from cp857 are therefore correct for HP’s set, not errors. - 0x7F. The charts for 19U, 5T and 5N print a chequered box at 0x7F (not DEL), which is what GhostPCL’s U+2592 draws; the note about Roman-8 above is the Roman-8 chart only.
- PC-865 Norway and PC-860 Portugal. Table C-1 of the Comparison Guide gives PC-865 Norway the symbol set ID 25U and PC-860 Portugal 20U. GhostPCL’s
map_25U_unicodecarries the header ID 20U (the same as the PC-860 map): a source error. The viewer module answers 25U with the PC-865 map and 20U with PC-860 (symbolMap('25U')). - 18N. GhostPCL’s
map_18N_unicodeholds a single value instead of 256. HP’s manuals in this folder do not list 18N; Epson’s list of PCL 5 symbol sets (files.support.epson.com, PCL Mode 5 Symbol Sets, WF-C5290) names attribute 18N “Unicode 3.0”. So 18N selects Unicode and has no 8-bit table; the viewer module lists it with no runs and leaves the codes as they are (the stroke font draws only U+0020 to U+007E in any case). Text parsing method for UTF-8: HP’s Comparison Guide (Esc &t#P, values 0, 1, 21, 31, 38) and the Technical Reference list no UTF-8 value. Lexmark’s PCL 5 reference (J110, Table 2-18, Font Selection) listsEsc &t1008Pas “1, 2, or 3 byte characters (UTF-8)”; the viewer implements that value (a multi-byte sequence is one character; ASCII, U+00A0 and the typographic quotes are drawn, other characters as the missing-glyph box) and tests it. A forum FAQ (Tek-Tips) gives 83 for Unicode and 1008 for UTF-8, but no manual that was read states value 83, so the viewer ignores it: this stays Not described.
symbolsets.js; box-drawing positions B3 to DA were compared by shape at the chart’s resolution), each result written down when the chart was read:- 10U PC-8 (page B-3). Compared 0x01 to 0x1F (the 31 symbol glyphs), 0x20 to 0x7F, and all of 0x80 to 0xFF. Agrees in every position, including 0x7F (house glyph U+2302; the Roman-8 and ISO charts show a box there, the PC chart a house), 0x9E = Pt (U+20A7), 0xB0 to 0xB2 shades, 0xDB to 0xDF blocks, 0xE0 to 0xEF Greek and 0xFE (small black square, as GhostPCL’s U+25AA). No difference.
- 8U Roman-8 (page B-4). Compared every position 0x20 to 0x7F and 0xA0 to 0xFE, glyph by glyph (accents A8 to AC, the letters A1 to FE, the symbols B0 to BF, F2 to FE). Agrees in all of them. Two points: the chart prints a chequered box at 0x7F (not DEL), as GhostPCL’s U+2592 draws, so the first bullet of this section applies to the text table B-2 only, not to the chart (the control names NUL to US are shown for 0x00 to 0x1F and 0x80 to 0x9F are shaded blank in the chart, GhostPCL leaves 0x00 to 0x1F and 0x80 to 0x9F unmapped); and 0xFF is blank in the chart and has no entry in the module.
- 0N ISO 8859-1 Latin 1 (page B-6). Compared 0x20 to 0x7F and 0xA0 to 0xFF (all letters and symbols of the Latin 1 layout). Agrees with
map_0N_unicodein the letters and symbols. Differences: (a) 0x80 is shaded (control) in the chart, GhostPCL has the Euro there (same as for 2N and 5N); (b) 0xAD prints a hyphen in the chart, GhostPCL has U+00AD (soft hyphen), not U+002D as in its 5N and 5T maps, so the glyph depends on the font; (c) 0xAF, the chart’s macron, is U+02C9 in GhostPCL (the same shape as ISO’s U+00AF); (d) 0x7F is a chequered box in the chart and U+2592 in GhostPCL, which agree. - 12U PC-850 Multilingual (page B-7). Compared 0x01 to 0x1F, 0x20 to 0x7F and 0x80 to 0xFF, including 0x9B to 0x9F (ø £ Ø × ƒ), 0xA9 (®), 0xB5 to 0xB8 and 0xBD, 0xBE (Á Â À © ¢ ¥), 0xCF (¤), 0xD0 to 0xD8, 0xE0 to 0xEF, 0xF0 (hyphen: U+002D in GhostPCL, the same glyph as the chart), 0xF2 to 0xFF. Agrees in every position; 0xFE is a small black square in both.
- 9J PC-1004 (page B-8). Compared 0x00 to 0x0C (the chart prints combining-style marks on EOT to FF: macron, breve, dot above, ring, double acute, ogonek, caron, which are U+02C9, 02D8, 02D9, 02DA, 02DD, 02DB, 02C7 in the module; BEL, NUL to ETX and SI carry no mark and are unmapped), 0x20 to 0x7F, 0x80 to 0x9F (every printed glyph: ‚ „ … † ‡ ˆ ‰ Š ‹ Œ ‘ ’ “ ” • – — ˜ ™ š › œ Ÿ; the blank positions 0x80, 0x81, 0x83, 0x8D to 0x90, 0x9D and 0x9E are unmapped) and 0xA0 to 0xFF. Agrees. The chart’s 0x88 and 0x98 (spacing circumflex and tilde) are the private-use values U+EFF7 and U+EFF5 in GhostPCL, which stand for those marks in its font table. 0xAD prints a hyphen in the chart and is U+002D in GhostPCL: agrees.
- 9N ISO 8859-15 Latin 9 (page B-9). Compared 0x20 to 0x7F and 0xA0 to 0xFF, with attention to the eight positions that differ from Latin 1 (0xA4 €, 0xA6 Š, 0xA8 š, 0xB4 Ž, 0xB8 ž, 0xBC Œ, 0xBD œ, 0xBE Ÿ). Agrees. 0x80 to 0x9F are shaded in the chart and unmapped in the module (this map, unlike 0N, 2N and 5N, has no Euro at 0x80). 0xAD prints a hyphen in the chart, U+002D in the module: agrees.
- 13U PC-858 Multilingual (page B-10). Compared all of 0x01 to 0xFF. The chart equals the PC-850 chart except 0xD5, which is the Euro sign instead of dotless i; the module’s 13U map equals its 12U map with exactly that change (0xD5 = U+20AC). Agrees in every position.
- 4U Roman-9 (page B-11). Compared every position 0x20 to 0x7F and 0xA0 to 0xFE. Same as the Roman-8 chart except 0xBA (¤ in Roman-8, € here); the module’s 4U equals its 8U except 0xBA = U+20AC. 0x7F is a chequered box in both, 0xFF is blank in the chart and absent from the module. Agrees.
- 9U Windows CP1252-obs. (page B-12). Compared 0x20 to 0x7F and 0x80 to 0xFF. Agrees for all letters and symbols, the Euro at 0x80, the quotes at 0x91 and 0x92, and the blank (unmapped) 0x81 to 0x90 and 0x93 to 0x9F. One difference of code point, not of shape: the chart’s 0xD0 is the Eth letter (U+00D0, as ISO 8859-1), GhostPCL’s
map_9U_unicodehas U+0110 (D with stroke), which is drawn alike in most fonts but is a different character in a Unicode font. 0xAD (hyphen in the chart) is U+00AD in the module, as in 0N. - 11U PC-8 Danish/Norwegian (page B-13). Compared 0x01 to 0x1F, 0x21 to 0x7F and 0x80 to 0xFF, including the positions that differ from PC-8: 0x9B to 0x9F (ø £ Ø Ŀ ŀ, U+013F and U+0140), 0xA6 õ, 0xA7 Õ, 0xA9 ã, 0xAA Ã, 0xAB ℓ (U+2113), 0xAC ʼn (U+0149), 0xAD ¡, 0xAE ³, 0xAF ¤. Agrees. Difference: the chart has SP at 0x20 and the module has no entry for 0x20 (GhostPCL’s map leaves it unmapped; the space is handled by the printer, not by the font, so no visible effect). The same holds for 9T; 17U and 0E do have an entry at 0x20 (checked in the module).
- 9E Windows CP1250 Latin 2 (page B-14). Compared 0x20 to 0x7F and 0x80 to 0xFF position by position (Euro, the quotes, 0x8A to 0x8F and 0x9A to 0x9F Š Ś Ť Ž Ź š ś ť ž ź, 0xA1 to 0xBF with ˇ ˘ Ł Ą Ş Ż ˛ ł ą ş Ľ ˝ ľ ż, all of 0xC0 to 0xFF, 0xFF ˙). Agrees; blank positions 0x81, 0x83, 0x88, 0x90 and 0x98 are unmapped. One code-point difference: chart 0xD0 is Đ drawn like Eth, GhostPCL has U+00D0 (the cp1250 table has U+0110), the same note as for 9U with the roles swapped; 0xAD is U+002D (hyphen in the chart). Source quirk seen while checking the control positions (no printed glyph):
map_9E_unicode(and the other maps copied from the same template) maps code 0x01 to U+0002 and 0x02 to U+0001, and 0x14 to U+0013 (a comment in the source says “urw 14 bad”); the charts show only control names there. - 2N ISO 8859-2 Latin 2 (page B-15). Compared 0x20 to 0x7F and 0xA0 to 0xFF position by position (all Central European letters, ˘ ˛ ˇ ˝ ˙). Agrees. Differences: 0x80 is the Euro in the module and shaded in the chart; 0xD0 is U+00D0 in the module and a stroked D (Đ, U+0110) in the chart, drawn alike; 0xAD is U+00AD (hyphen in the chart).
- 19L Windows CP1257 Baltic (page B-20). Compared 0x21 to 0x7F and 0x80 to 0xFF (Euro, quotes, the spacing marks at 0x8D ¨, 0x8E ˇ, 0x8F ¸, 0x9D ¯, 0x9E ˛, Ø ø Ŗ ŗ Æ æ, and every Baltic letter of 0xC0 to 0xFE, 0xFF ˙). Agrees. The chart’s spacing marks at 0x8D, 0x8E and 0x9D are the private-use values U+EFF6, U+EFF4 and U+EFEF in GhostPCL (its font-table stand-ins; the glyphs are the same marks). 0x20 has no entry in the module (the chart has SP); 0xAD hyphen is U+002D.
- 6N ISO 8859-10 Latin 6 (page B-21). Compared 0x20 to 0x7F and 0xA0 to 0xFF position by position (Nordic and Baltic letters, 0xBD, 0xFF ĸ). Agrees in every letter. Differences: 0xA0 (NBSP in the chart) has no entry in the module; 0xA9 and 0xD0 are U+00D0 in the module and a stroked D (U+0110) in the chart, drawn alike; 0xAD hyphen is U+002D; 0xBD is the chart’s long dash, U+2014 in the module (the ISO table has U+2015), so the ISO Latin 6 difference found from the codec is a difference from the codec, not from HP’s chart (the glyph is a long dash in both).
- 26U PC-775 (page B-22). Compared 0x01 to 0x1F, 0x21 to 0x7F and 0x80 to 0xFF position by position (the Baltic letters at 0x80 to 0x9F, 0xA0 to 0xA6, 0xB5 to 0xB8, 0xBD, 0xBE, 0xC6, 0xC7, 0xCF to 0xD8, 0xE0 to 0xEF, the quotes at 0xA6, 0xEF, 0xF2 and 0xF7). Agrees in every letter. Differences with no visible effect: 0x20 and 0xFF (SP and NBSP in the chart) have no entry in the module; 0x27 is U+2019 (a typographic apostrophe, as for the other maps listed above); 0xF0 is U+00AD where the chart prints a hyphen.
- 19M Symbol Font (page B-23). This set is a font encoding, not a Unicode text set: the chart shows the Symbol typeface’s own glyphs (Greek letters, maths symbols, brace pieces at 0xE0 to 0xFE, the Euro at 0xF0) at 0x21 to 0xFE with 0x20 = SP; shaded positions 0x60, 0x7F (DEL), 0x80 to 0x9F, 0xA0 (NBSP) and 0xFF are unused or blank. GhostPCL’s
map_19M_unicode(module entry19M) has 0x20 = U+0020 and every code 0x21 to 0xFF = U+F000 plus the code (private-use area), i.e. “code = glyph position in the Symbol font”, without saying which are blank. Agrees with the chart for the codes that carry a glyph; the module claims codes that are blank in the chart (0x60, 0x7F, 0x80 to 0xA0, 0xFF) as well. The viewer’s stroke font has no Symbol glyphs, so these draw as the missing-glyph box either way. The same applies to 579L (Wingdings) and 14L, which have the same structure in the module. - 579L Wingdings (page B-24). A font-encoded set like 19M: the chart has a Wingdings glyph at every code 0x21 to 0xFF except 0x7F (printed as DEL) and 0x20 = SP. The module has 0x20 = U+0020 and 0x21 to 0xFF = U+F021 to U+F0FF, so it claims 0x7F as a glyph position where the chart has DEL; every other position agrees in that the chart has a glyph there. The glyph shapes themselves are not in the viewer (missing-glyph box).
- 14L Windows Dingbats (page B-25). Font-encoded like 19M. The chart has glyphs at 0x21 to 0x7E, 0x80 to 0x8D and 0xA1 to 0xEF (an ITC Zapf Dingbats font is shown) and is blank at 0x7F (DEL), 0x8E to 0xA0 and 0xF0 to 0xFF. The module’s 0x21 to 0xFF = U+F021 to U+F0FF claims the blank positions too; no position with a glyph is missing. Agrees for glyph positions; the extra claimed positions have no effect (nothing is drawn there).
- 10J PS Text (page B-26). Compared 0x20 to 0x7F and every printed position of 0xA0 to 0xFF (¡ ¢ £ fraction ¥ ƒ § ¤ quotes, guillemets, ligatures, dashes, daggers, the ten accent marks at 0xC1 to 0xCF, Æ ª Ł Ø Œ º æ ı ł ø œ ß). Agrees; the blank positions of the chart (0x80 to 0x9F, 0xB0, 0xB5, 0xBE, 0xC0, 0xC9, 0xCC, 0xD1 to 0xE0 and others) have no entry in the module. 0x27 is a typographic apostrophe and 0x60 an opening quote in the chart, as U+2019 and U+2018 in the module. Differences: 0xA4 is a fraction slash in the chart (U+2044) and U+2215 (division slash) in GhostPCL, the same shape; 0x7F is DEL in the chart and a control (U+0097) in the module.
- 12J MC Text (page B-27). Compared 0x20 to 0x7F and 0x80 to 0xFF, glyph by glyph (the Mac-style layout: accented letters 0x80 to 0x9F, symbols 0xA0 to 0xC9, 0xCA NBSP, 0xCB to 0xDF with the Euro at 0xDB, 0xE0 to 0xEF, 0xF1 to 0xFF accents). Agrees in every position. 0x7F (DEL) and 0xF0 (no glyph in the chart) have no entry in the module. 0xDA is the chart’s fraction slash and U+2215 in the module (same shape); 0xE1 is a middle dot, U+2219.
- 5M PS-Math (page B-28). Compared 0x20 to 0x7E (Greek letters, ∀ ∃ ∋ ∗ − ≅ Δ ∴ ⊥ and the two rule pieces at 0x5F and 0x60), 0xA1 to 0xDF (ϒ ′ ≤ ⁄ ∞ ƒ suits, arrows, ° ± ″ ≥ × ∝ ∂ • ÷ ≠ ≡ ≈ … ℵ ℑ ℜ ℘ set symbols, ∠ ∇ ∏ √ ¬ ∧ ∨ double arrows) and 0xE0 to 0xFE. The Unicode assignments of all 0x20 to 0xDF positions agree with the chart, including the Euro at 0xF0 and 0xD7 (dot operator, U+2219). The bracket and brace pieces at 0xE6 to 0xFE are private-use stand-ins in GhostPCL (U+EFD0 range) that cannot be checked against the chart’s glyphs without the font; the module gives the same value to different pieces (U+EFDD for 0xE7, 0xEF, 0xF4, 0xF7 and 0xF8, which the chart shows as left, middle and lower pieces) so it cannot tell some of them apart: this is a limit of GhostPCL’s table, not a spec statement, and the viewer draws none of them. 0x7F is DEL in the chart and absent in the module.
- 8M Math-8 (page B-29). Compared 0x21 to 0x7F (radical, ″ ° ∞ ÷ ∝ ′ × −, ℯ, ε, ≈, ∴, the capital and small Greek letters, ∇ ∂ ς ≤ ≠ ≥ ∵ ϑ ϕ ϖ ≃ ≡ ≢, chequered box at 0x7F) and 0xA1 to 0xDF (all arrows, quantifiers, set symbols, circled operators, ∧ ∨ ⊻ ¬ ∘ ∙ • ● ○ † ‡, Å, turnstiles, ∫ ∮ ∠ ∅, the Hebrew-style letters ℵ ℶ ℷ, ℭ ℑ ℜ ℨ) and the Unicode-valued positions of 0xE0 to 0xFE (0xE5 ⌠, 0xE7 ⌡, 0xE9 ∥, 0xEE ∗, 0xEF ≅, 0xFD ∓, 0xFE ±). Agrees in all of them. The bracket pieces and some other glyphs at 0xE0 to 0xFC (for example the angle bracket at 0xFC) are private-use stand-ins (U+EFC0 to U+EFFF range) in GhostPCL and could not be checked against the chart without the font. 0x21 and 0x5F, 0x60 and 0xAF, 0xB0 are the private-use radical and rule pieces.
- 15U Pi Font (page B-30). Compared every printed position of 0x20 to 0x7F: the quotes at 0x22 to 0x27, angle brackets 0x28 and 0x29, ™ ℠ ® © and the circled M at 0x2A to 0x2E, the accents at 0x30 to 0x33, the diagonal arrows 0x34 to 0x37, the triangles 0x38 to 0x3B and 0x3C ≪, 0x3E ≫, § ¶, ∷, script and italic letters at 0x41 to 0x4D, ℘ ℞ ∑, brackets at 0x5B to 0x5F, and the line-drawing pieces and diamonds at 0x60 to 0x7D. Agrees for every position that GhostPCL maps to a Unicode value; the pieces without one (0x41, 0x46, 0x50, 0x5C, 0x67 to 0x6C, 0x78 to 0x7C) are private-use stand-ins that cannot be checked. Blank positions of the chart (0x21, 0x2F, 0x42 to 0x45, 0x47, 0x49 to 0x4B, 0x4E, 0x4F, 0x54 to 0x5A and 0x80 to 0xFF) have no entry in the module. 0x7F is a chequered box in both.
- 7J DeskTop (page B-31). Compared 0x20 to 0x7F and every printed position of 0xA0 to 0xFE (¶ § † ‡ © ® ™ ℅ ¢ dashes, ellipsis, ligatures, quotes, µ ‰, bullets and squares, fractions, ± × ÷, guillemets, ¡ ¿ ₧ ℓ £ ¥ ¤ ƒ ß, the ligature letters ij IJ œ Œ, æ Æ ð Ð ł Ł ø Ø þ Þ, the accent marks at 0xF0 to 0xFD, ı at 0xFE). Agrees in every position. Differences: the chart’s 0xA0 is NBSP and
map_7J_unicodehas U+0001 there (a source oddity, no printed glyph); 0xAF, 0xCE, 0xCF and 0xFF are blank in the chart and unmapped (0xFFFF) in GhostPCL; 0x27 and 0x60 are typographic quotes in both; 0xBC is a straight apostrophe (U+0027) in both. - 1U Legal (page B-32). Compared all of 0x20 to 0x7F (changed positions: 0x22 ″, 0x27 ′, 0x3C ‗, 0x3E ¢, 0x5C ®, 0x5E ©, 0x60 °, 0x7B § , 0x7C ¶, 0x7D †, 0x7E ™, 0x7F chequered box). Agrees. The chart has no printed position above 0x7F (0x80 to 0x9F shaded, 0xA0 to 0xFF blank) and the module has none. Source quirk: control code 0x0E (SO) is U+001E in the module.
- 6J Microsoft Publishing (page B-33). Compared every printed position of 0x20 to 0x7F (superscript digits at 0x21, 0x23 to 0x26, 0x28 to 0x2A, 0x40 and 0x5E, quotes, dashes, ellipsis, ⁄, daggers, Ľ Œ ℞ Š ™ Ÿ Ž ℅ ℓ œ š ž) and 0x9E, 0x9F, 0xA1 to 0xAF (primes, ^, ~, the ff, fi, fl, ffi, ffl ligatures, ‹ ›), 0xB0 to 0xBF (bullets and squares, ‰, diamonds), 0xC1 to 0xDF (accent marks) and 0xE0, 0xE6 to 0xE8, 0xEF, 0xF5 to 0xF8. Agrees at every position the module maps to a Unicode value; the large circle, squares and accent marks that GhostPCL gives private-use values (U+EFxx) could not be checked against the chart without the font. All blank chart positions have no entry in the module.
- Table B-1 ISO Substitution Characters (page B-34). The table gives, for 19 ISO sets, the characters at decimal 35, 36, 64, 91 to 94, 96 and 123 to 126 (0x23, 0x24, 0x40, 0x5B to 0x5E, 0x60, 0x7B to 0x7E). Of the 19 sets, GhostPCL’s
plsymbol.chas 8 (0U ASCII, 1E United Kingdom, 1F French, 1G German, 0I Italian, 0S Swedish for Names, 2S Spanish, 0D Norwegian version 1) and all 8 were compared at all 12 positions: they agree, with one exception. Exception: ISO 17 Spanish (2S) at 0x7E: HP prints an overline, GhostPCL’smap_2S_unicodehas the small tilde U+02DC (the other overline sets, 1E and 0D, have U+00AF). In 0U GhostPCL has a typographic quote at 0x60 (U+2018), HP’s table a plain grave accent. The eleven sets the table marks with an asterisk (“becoming obsolete … not present on” the LaserJet 4 and later models listed in the table’s footnote) are not inplsymbol.cand so not in the viewer: 2U ISO 2 International Reference Version, 0F ISO 25 French, 0G HP German, 0K ISO 14 JIS ASCII, 2K ISO 57 Chinese, 3S ISO 10 Swedish, 1S HP Spanish, 6S ISO 85 Spanish, 4S ISO 16 Portuguese, 5S ISO 84 Portuguese, 1D ISO 61 Norwegian version 2. By Table B-1 they differ from ASCII only in the twelve positions listed; the viewer has no map for them (the source GhostPCL has none, and the manual says the printers of its footnote lack them too).
- Typeface name for 6. The Comparison Guide’s typeface table (Table C-3) names base value 6 “Letter Gothic”; the viewer’s table now says so. The other numbers (3, 4, 7, 8, 4099 to 45358) were checked against the base values of that table and agree.
Not described
HP published PCL 5 and PCL XL. The pages follow HP’s PCL 5 Printer Language Technical Reference Manual, its Comparison Guide and Color Technical Reference Manual, and the PCL XL Feature Reference (protocol class 2.0 with the 2.1 and 3.0 supplements). The eight shading and six cross-hatch patterns are figures in the manual; they are vector drawings and were read from them dot by dot (shading) and line by line (cross-hatch), so the viewer draws HP’s own patterns. PCL XL is now read against the operator grammar, the attribute types and ranges and the error names of Appendix K, and its streams, delta-row and JPEG images, raster patterns, scan lines, soft fonts, PassThrough, clip paths, ROP3 and transparency are carried out. The HP-GL/2 and HP RTL Reference Guide (third edition) was read for the HP RTL commands, the HP-GL/2 error numbers and the plotter-only instructions.
Round 3 added: the Printer Job Language page (every command and variable of the PJL Technical Reference Manual), the formats of the status readback replies, the PCL 5 text modes (display functions, the vertical text path, two-byte text), the print model’s logical operation and transparency modes on rectangles and raster images, Roman-8 character by character, the font selection and pitch and height rules, the PCL XL attribute types read from the page images, and the HP RTL commands and context switching.
Known, not yet covered
- Reference: only the Roman-8 symbol set is typed out character by character. The Comparison Guide’s other charts (PC-8, PC-850, PC-858, PC-852, PC-775, PC-1004, PC-8 Danish/Norwegian, PC-Turkish, Windows 1250, 1252, 1254, 1257, ISO 8859-1, -2, -9, -10, -15, Roman-9, Desktop, Legal, PS Text, MC Text, Microsoft Publishing, Math-8, PS Math, Pi Font, Symbol, Wingdings, Dingbats) are glyph charts in the PDF and
are not typed (GhostPCL’s
pcl/pl/plsymbol.cholds Unicode or MSL maps for 55 sets, all transcribed into the viewer modulesymbolsets.jsand used by the viewer; the Roman-8 and Roman-9 maps were compared with the page, and the 31 chart pages of Appendix B and the 8 ISO sets of Table B-1 were read as images, 39 of the 55 sets, see Divergence from spec; the other 16 have no chart in the manual, and the per-set tables are on the fonts page); Appendix D (the MSL and Unicode symbol indexes: pictures in the PDF, no text layer) is not typed, since the viewer takes its mapping from GhostPCL’s maps. The Comparison Guide’s Tables C-1, C-2 and C-3 are now given in full. The PJL addendum (bpl13207) chapters 2 and 4 are on the PJL page, and from chapter 3 the command-support tables (Tables 2 to 7) and the COPIES, TIMEOUT, RESOLUTION, PITCH and PTSIZE ranges; the rest of its variable tables (9 to 14) and Appendix A of the PJL manual (which variable each printer model has) are not copied; PCL 3 GUI is not covered. See soft fonts and symbol sets. - Reference: the subsystem name of a PCL XL error report (KERNEL in the manual’s example) is not listed in the manual for the other errors. GhostPCL (
pxtop.c) prints KERNEL for its own kernel errors and GRAPHICS for the rest, which is its choice, not HP’s table, so the explorer does not assign a subsystem to each error. - Viewer: the print model’s logical operation and transparency modes change rectangular area fills and raster images (with the current pattern taken as solid for rasters), and the logical operation and the pattern transparency change characters and HP-GL/2 marks (pen lines and hatch lines only for the operations 0, 160, 170, 240, 250 and 255, as in GhostPCL); the white pixels of a character cell as source are not modelled. Colour lookup tables, gamma and render algorithms are explained but do not change the picture.
- Viewer: two-byte text is parsed and positioned by the three parsing methods and a soft font’s two-byte characters are drawn; the printer’s built-in large fonts are not available, so such characters advance the cursor and draw nothing. The vertical rotated text path rotates the full-width characters of a soft TrueType font; where the rotated box sits on the line is the viewer’s reading of the Vertical Rotation segment, and a font’s own VR and VT segments are not read.
- Viewer: in PCL XL, SetPathToClip is formed exactly (fill and stroke) when the regions are single polygons and all but one are convex, and otherwise is the intersection for fills only, a stroke drawing the outlines of the regions; the dither matrix and halftone method are read and ignored, which the Feature Reference allows; the writing mode eVertical adds nothing beyond the job’s own escapements (the manual says no more); PassThrough keeps the PCL 5 state across blocks and pages; at the first block of each page the top and bottom margins go back to 1/6 inch and the cursor is the XL cursor (Class 3.0 supplement 2.2), and GhostPCL also resets the left and right margins there, which the supplement does not say; a block that arrives after XL has marked the page is a snippet, where page commands (size, orientation, duplex, source, type) are ignored, a form feed moves the cursor to the PCL page origin without ejecting and Esc E resets without altering the page state, while a block before any mark is honoured whole; the supplement also sets pixel placement to grid-centred for PassThrough data, which moves raster by under a pixel and is not drawn; SetNeutralAxis, SetColorTrapping and SetAdaptiveHalftoning are listed by name and read but have no effect on the drawing (the supplement leaves their purpose as TBD); the text of fonts the printer holds (not downloaded) is drawn with the stroke font; a stream in the ASCII binding is noted and not decoded (see Unknown).
Unknown
- Reference: the parts of the Intellifont character data (format 10, classes 3 and 4) that no document or program explains. Round 12 decoded the metrics block and the outline block from GhostPCL’s
pcl/pl/plchar.cand checked them against the real Intellifont typefaces of HP’s Intellifont-for-Windows 1.1 (see Fonts, Intellifont); still unknown are the meaning of the Intellifont-data block, the contour tree and tangent blocks, the use of the curve flags, and how the auxiliary points are meant to be applied (GhostPCL ignores them, so the viewer does too; Divergence from spec). The search history for the Agfa specification follows: HP’s manual points to Agfa’s Intellifont Scalable Typeface Format, which is not public: Agfa refused it to the FreeType project as for internal use only, HP’s PCL Implementor’s Guide (chapter 10) gave HTTP 403, Wikipedia and PRONOM only name the format, and GhostPCL’splfont.chas only the design-space constants (8782 units to the em) and leaves the scaling to Agfa’s proprietary library. Round 2 (2026-11-27) searched again: the web search finds only HP and Brother PCL manual pages that repeat the character descriptor and defer to the Agfa document, and no open-source program that reads or writes Intellifont contours was found (no closed-source binary was inspected). Round 4 searched again (web search, the FreeType mailing-list thread, patents): still no public specification or decoder. The archive.org item IFW11_ZIP (“Hewlett Packard Intellifont Kit Ver 1.1”, one file of 1,321,672 bytes) exists, but its metadata carries no licence or rights statement, so it was not downloaded at the time; round 12 downloaded it (it holds eight CG Times and Univers.TYPtypefaces, a screen-font driver and an HP LaserJet III driver; saved under research/pcl/intellifont-ifw11/). The statement that GhostPCL only has the design-space constants was wrong:plchar.cholds a full outline renderer. Not every byte of the contour data is accounted for (see above); the outlines are drawn. - Reference: the grammar of the PCL XL ASCII binding (the supplement reserves
', 0x27; GhostPCL’s tools write a text form headed by a backtick, 0x60; round 12 found no HP definition and no program that renders it, GhostPCL’s own parser reading only the binary bindings, so the viewer reports it as UnsupportedBinding and draws nothing): the Feature Reference and its two supplements reserve the byte and name the binding without defining it; its examples use a plain notation that is never called that binding. Round 2 re-read the Feature Reference 2.0 r18 (a second copy, from a mirror): its stream header section only lists 0x27 as reserved; HP’s developer-site download (PCL6_XL_Datastream-Function-Reference.pdf) answered HTTP 403 and was not retried with a workaround; GhostPDL’spxlasm.pyreads a different, backtick-headed text notation (see Divergence from spec) and its parser has no ASCII mode, and round 12 also read the JetASM98 readme (pic.hallikainen.org, saved under research/pcl/jetasm/), which describes a PCL assembler and gives no ASCII binding grammar, so no program that reads or writes the ASCII binding was found. Round 4: a PICList page is said by a search summary to give a quote-headed example, but it could not be fetched, forum posts say printers do not accept the ASCII form, and the HP supplements only list 0x27 as reserved; still no grammar. See PCL XL. - Reference: the shapes and exact advance widths of the printer’s built-in fonts (Courier, Letter Gothic, CG Times and the rest) are the printer’s and are not in the manual, which points to the vendor’s font metric data; the HMI, pitch and size rules are given exactly on the fonts page and used for fixed fonts, the shapes are our stroke font.
- Reference: how the run-length replacement data of compression method 9 is counted: the Comparison Guide gives the command byte and not this. The viewer uses the counting of
GhostPCL’s encoder (
gdev_pcl_mode9compressindevices/gdevpcl.c, one raw file): a repeat block repeats ONE byte count + 2 times; that is GhostPCL’s behaviour, not HP’s text. - Reference: the manual’s formulas for ROP3 with transparency (PCL XL section 5.7.5) read as bit operations in which a set bit is opaque, while its prose says the white pixels become transparent; the viewer takes the formulas’ source and paint operands as opacity masks of the white pixels, which reproduces the manual’s worked example (11101010) and its prose.
- Viewer: the printer’s built-in fonts (Courier, Letter Gothic, CG Times and the rest) are proprietary outlines and are drawn with a stroke font. The patterns’ size on paper is taken as one dot of the figure = one dot at 300 dpi (the figure is printed at 96 per cent); the 1/16 inch spacing of the cross-hatch lines was measured from the figure, the manual states none.
Links
Software
- GhostPCL – part of Ghostscript, which renders PCL 5 and PCL XL to PDF or images (Windows, macOS, Linux)
Developers
- GhostPDL – source of GhostPCL, the most complete open implementation of PCL 5 and PCL XL (C)