Привет, All!
=== Cut ===
HP LaserJet 4p PCL Command System
Source: User’s Manual publication number C2005-91027
┌─────────────┬────────────────────┬───────────────────────────────────────┐
│ Function │ Parameter │ Hex Value │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Job control commands │
├──────────────────────────────────────────────────────────────────────────┤
│ Reset │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Universal │ — │ 1b 25 2d 31 32 33 34 35 58 │
│exit │ │ │
│Reset │ — │ 1b 45 │
│Number of │ # of copies 1-99 │ 1b 26 6c # 58 (78) │
│copies │ │ │
│Long edge │ # of 1/720 " │ 1b 26 6c # 55 (75) │
│(left) offset│ │ │
│registration │ │ │
│Short edge │ -"- │ 1b 26 6c # 5a (7a) │
│(top) offset │ │ │
│registration │ │ │
│Unit of │ Number of units │ 1b 26 6c # 44 (64) │
│measure │ per inch │ │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Page control commands │
├──────────────────────────────────────────────────────────────────────────┤
│ Page length & size │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Paper source │ Eject page │ 1b 26 6c 30 48 (68) │
│ │ Paper cassette │ 1b 26 6c 31 48 (68) │
│ │ Manual feed │ 1b 26 6c 32 48 (68) │
│ │ Manual envelope │ 1b 26 6c 33 48 (68) │
│ │ feed │ │
│Paper size │ Executive │ 1b 26 6c 31 41 (61) │
│ │ Letter │ 1b 26 6c 32 41 (61) │
│ │ Legal │ 1b 26 6c 33 41 (61) │
│ │ A4 │ 1b 26 6c 32 36 41 (61) │
│ │ B5 │ 1b 26 6c 31 30 30 41 (61) │
│ │ Monarch │ 1b 26 6c 38 30 41 (61) │
│ │ COM 10 │ 1b 26 6c 38 31 41 (61) │
│ │ DL │ 1b 26 6c 39 30 41 (61) │
│ │ C5 │ 1b 26 6c 39 31 41 (61) │
│ │ Custom │ 1b 26 6c 31 30 31 41 (61) │
│Page length │ # of lines (5-128) │ 1b 26 6c # 50 (70) │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Orientation │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Orientation │ Portrait │ 1b 26 6c 30 4f (6f) │
│ │ Landscape │ 1b 26 6c 31 4f (6f) │
│ │ Reverse portrait │ 1b 26 6c 32 4f (6f) │
│ │ Reverse landscape │ 1b 26 6c 33 4f (6f) │
│Print │ # degrees of │ 1b 26 61 # 50 (70) │
│direction │ rotation │ │
│ │(counterclockwise │ │
│ │ 90 grad incr only) │ │
└─────────────┴────────────────────┴───────────────────────────────────────┘
┌─────────────┬────────────────────┬───────────────────────────────────────┐
│ Function │ Parameter │ Hex Value │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Margins & text length │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Top margin │ # of lines │ 1b 26 6c # 45 (65) │
│Text length │ # of lines │ 1b 26 6c # 46 (66) │
│Left margin │ # of columns │ 1b 26 61 # 4c (6c) │
│Right margin │ # of columns │ 1b 26 61 # 4d (6d) │
│Clear horiz. │ │ 1b 39 │
│margins │ │ │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Perforation skip mode │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Perforation │ Disable │ 1b 26 6c 30 4c (6c) │
│skip │ Enable │ 1b 26 6c 31 4c (6c) │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Horizontal column spacing │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│HMI │ # of 1/120" incrs. │ 1b 26 6b # 48 (68) │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│The Horizontal Motion Index (HMI) designates the distance between │
│columns in 1/120 " increments. When fixed pitch fonts are selected, │
│all printable characters, including the space & backspace, are │
│affected by HMI. When proportional fonts are selected, the HMI │
│affects only the control code space character. # in the sequence is │
│derived from the following formula: │
│ │
│ Horizontal printable area │
│ ─────────────────────────── * 120 = # │
│ Desired chars per line │
├──────────────────────────────────────────────────────────────────────────┤
│ Vertical line spacing │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│VMI │ # of 1/48" incrs. │ 1b 26 6c # 43 (63) │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│The Verical Motion Index (VMI) designates the distance between rows │
│in 1/48" increments (the vertical distance the cursor will move for │
│a linefeed operation). This command affects the linefeed and half │
│linefeed spacing. The factory default VMI is 8, which corresponds │
│to 6 lines per inch. # in the sequence is derived from the following │
│formula: │
│ │
│ Vertical printable area │
│ ────────────────────────── * 48 = # │
│ Desired lines per page │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Line spacing │ 1 L/I │ 1b 26 6c 31 44 (64) │
│Lines/inch │ 2 -"- │ 1b 26 6c 32 44 (64) │
│ │ 3 │ 1b 26 6c 33 44 (64) │
│ │ 4 │ 1b 26 6c 34 44 (64) │
│ │ 6 │ 1b 26 6c 36 44 (64) │
│ │ 8 │ 1b 26 6c 38 44 (64) │
│ │ 12 │ 1b 26 6c 31 32 44 (64) │
│ │ 16 │ 1b 26 6c 31 36 44 (64) │
│ │ 24 │ 1b 26 6c 32 34 44 (64) │
│ │ 48 -"- │ 1b 26 6c 34 38 44 (64) │
└─────────────┴────────────────────┴───────────────────────────────────────┘
┌─────────────┬────────────────────┬───────────────────────────────────────┐
│ Function │ Parameter │ Hex Value │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Cursor positioning │
├──────────────────────────────────────────────────────────────────────────┤
│ Vertical & horizontal │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Vertical │ # of rows │ 1b 26 61 # 52 (72) │
│position │ # of dots │ 1b 2a 70 # 59 (79) │
│ │ # of 1/720" │ 1b 26 61 # 56 (76) │
│Horizontal │ # of columns │ 1b 26 61 # 43 (63) │
│position │ # of dots │ 1b 2a 70 # 58 (78) │
│ │ # of decipoints │ 1b 26 61 # 48 (68) │
│Half LF │ │ 1b 3d │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ End of line termination │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Line │CR=CR LF=LF FF=FF │ 1b 26 6b 30 47 (67) │
│termination │CR=CR+LF LF=LF │ 1b 26 6b 31 47 (67) │
│ │FF=FF │ │
│ │CR=CR LF=CR+LF │ 1b 26 6b 32 47 (67) │
│ │FF=CR+FF │ │
│ │CR=CR+LF LF=CR+LF │ 1b 26 6b 33 47 (67) │
│ │FF=CR+FF │ │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Push/pop position │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Push/pop │Push │ 1b 26 66 30 53 (73) │
│position │Pop │ 1b 26 66 31 53 (73) │
└─────────────┴────────────────────┴───────────────────────────────────────┘
┌─────────────┬────────────────────┬───────────────────────────────────────┐
│ Function │ Parameter │ Hex Value │
├─────────────┴────────────────────┴───────────────────────────────────────┤
│ Font selection │
├──────────────────────────────────────────────────────────────────────────┤
│ Symbol set selection (additional sets are supported) │
├─────────────┬────────────────────┬───────────────────────────────────────┤
│Primary │ISO 60 Norwegian │ 1b 28 30 44 │
│symbol │ISO 4 United Kingdom│ 1b 28 31 45 │
│set │Windows 3.1 Latin 2 │ 1b 28 39 45 │
│ │ISO 69 French │ 1b 28 31 46 │
│ │ISO 21 German │ 1b 28 31 47 │
│ │ISO 15 Italian │ 1b 28 30 49 │
│ │Microsoft Publishing│ 1b 28 36 4a │
│ │Desk Top │ 1b 28 37 4a │
│ │PS text │ 1b 28 31 30 4a │
│ │MC text │ 1b 28 31 32 4a │
│ │Ventura Internation.│ 1b 28 31 33 4a │
│ │Ventura US │ 1b 28 31 33 4a │
│ │Wingdings │ 1b 28 35 37 39 4c │
│ │PS math │ 1b 28 35 4d │
│ │Ventura math │ 1b 28 36 4d │
│ │Math-8 │ 1b 28 38 4d │
│ │Symbol │ 1b 28 31 39 4d │
│ │ISO 8859-1 Latin 1 │ 1b 28 30 4e │
│ │ISO 8859-2 Latin 2 │ 1b 28 32 4e │
│ │ISO 8859-9 Latin 5 │ 1b 28 35 4e │
│ │ISO 11 Swedish │ 1b 28 30 53 │
│ │ISO 17 Spanish │ 1b 28 32 53 │
│ │Windows 3.1 Latin 5 │ 1b 28 35 54 │
│ │PC Turkish │ 1b 28 39 54 │
│ │ISO 6 ASCII │ 1b 28 30 55 │
│ │Legal │ 1b 28 31 55 │
│ │Roman 8 │ 1b 28 38 55 │
│ │Windows 3.0 Latin 1 │ 1b 28 39 55 │
│ │PC-8 │ 1b 28 31 30 55 │
│ │PC-8 D/N │ 1b 28 31 31 55 │
│ │PC 850 │ 1b 28 31 32 55 │
│ │Pi Font │ 1b 28 31 35 55 │
│ │PC-852 │ 1b 28 31 37 55 │
│ │Windows 3.1 Latin 1 │ 1b 28 31 39 55 │
│ │ (ANSI) │ │
├─────────────┴────────────────────┴───────────────────────────────────────┤
=== Cut ===
WBR, Yury.
… Засыпая вечером, я тоже улыбаюсь…:)