xref: /haiku/src/add-ons/print/drivers/pcl5/PCL5_Protocol.txt (revision d5cd5d63ff0ad395989db6cf4841a64d5b545d1d)
1PCL5 Protocol
2
3Esc 27 decimal, 1b hexadecimal, 33 octal
4
5Soft Reset
6	EscE
7
8Page Size Command
9	Esc&l<size>A
10	size ... 1 Executive, 2 Letter, 3 Legal, 4 Ledge, 26 A4, 27 A3, etc ...
11
12Logical Page Size Command
13	Esc&l<size>O
14	size ... 0 portrait, 1, landscape, 2 reverse portrait, 3 reverse landscape
15
16Clear Horizontal Margins Command
17	Esc9 resets margins to that of logical page
18
19Top Margin Command
20	Esc&l<lines>E
21	lines ... number of lines
22
23Unit of Measure
24	Esc&u<units>D
25
26Horizontal Cursor Positioning (PCL Units) Command
27	Esc*p<x>X (default 1/300 inch)
28
29Vertical Cursor Positioning (PCL Units) Command
30	Esc*p<x>Y (default 1/300 inch)
31
32Perforation Skip Command
33	Esc&l<skip>L
34	skip ... 0 disable, 1 enable
35
36Number of copies
37	Esc&l<copies>X
38
39Print Direction Command
40	ESC&a<degree>P degree ... 0, 90, 180, 270
41
42Job Separation Command
43	Esc&l1T (before reset at end of job)
44
45Image Transfer
46
47Raster Presentation
48	Esc*r<mode>F
49	mode ... 0 in orientation of logical page
50	         3 raster image prints along the width
51	           of the physical page
52Raster Resolution
53	Esc*t<dpi>R
54	dpi ... 75, 100, 150, 200, 300, 600
55Raster Height
56	Esc*r<height>T
57	height ... 0 to logical page length - current Y position
58Raster Width
59	Esc*r<width>S
60	width ... in pixels of the specified resolution
61Start Raster Graphics
62	Esc*r0A start at default left graphics margin (X position 0)
63	Esc*r1A start at current X position
64{
65	Y Offset
66		Esc*b<lines>Y
67		lines ... number of raster lines of vertical movement
68	Raster Compression
69		Esc*b<mode>M
70		mode ... 0 unencoded
71		     ... 1 run length encoding
72		     ... 2 tagged image file format (TIFF) rev. 4.0
73		     ... 3 delta row compression
74		     ... 4 reserved
75		     ... 5 adaptie compression
76	{Transfer Raster Data
77		Esc*b<length>W<data>
78		length ... 0 to 32767
79	}
80}
81End Raster Graphics
82	Esc*rC
83	Esc*rB (old)
84
85Color printing
86
875colrtef.pdf on page 196