PCL Emulation - Escape Sequences
The following PCL codes are supported by the Fax2Send PCL Emulator:
ESC represents the hex character 0x1b:
Page Length and Size:
ESC &l#H Page Eject (feed from tray #)
ESC &l#P Page Length in lines
Orientation:
ESC &l0O Portrait Orientation
ESC &l1O Landscape Orientation
ESC &a#P Degress of Rotation - Counterclock, 90, 180, 270
Margins and Text Length:
ESC &l#E Top Margin
ESC &l#F Text Length in lines
ESC &a#L Left Margin
ESC &a#M Right Margin
ESC 9 Clear Horizontal Margins
Horizontal Column Spacing:
ESC &k#H Horizontal Motion Index (# chars per inch)
Vertical Line Spacing:
ESC &l#C Vertical Motion Index (in 1/48")
ESC &l#D Vertical Spacing, Lines per Inch
Cursor Positioning - Vertical and Horizontal:
ESC &a#R Vertical Cursor Position in Lines
ESC *p#Y Vertical Cursor Moves in 1/300"
ESC &a#V Vertical Cursor Position in Decipoints
ESC &a#C Horizontal Cursor Position in Columns
ESC *p#X Horizontal Cursor Moves in 1/300"
ESC &a#H Horizontal Cursor Position in Decipoints
ESC = Half a Line Feed
End of Line Termination:
ESC &k0G CR=CR; LF=LF; FF=FF
ESC &k1G CR=CR+LF; LF=LF; FF=FF
ESC &k2G CR=CR; LF=CR+LF; FF=CR+LF+FF
ESC &k3G CR=CR+LF; LF=CR+LF; FF=CR+LF+FF
Push/Pop Position:
ESC &f0S Push Cursor
ESC &f1S Pop Cursor
Primary Font Selection:
ESC (## Symbol Set
ESC (s#H Font Pitch
ESC &k0S 10 cpi
ESC &k2S 16.7 cpi
ESC &k4S 12 cpi
ESC (s#V Point Size
ESC (s0S Upright
ESC (s1S Italic
ESC (s#B Stroke Weight (-3 to + 3)
ESC (s#T Type Face
ESC (s0P Fixed Spacing
ESC (s1P Proportional Spacing
ESC (#X Specify font by id
Secondary Font Selection:
ESC )## Symbol Set
ESC )s#H Font Pitch
ESC &k0S 10 cpi
ESC &k2S 16.7 cpi
ESC &k4S 12 cpi
ESC )s#V Point Size
ESC )s0S Upright
ESC )s1S Italic
ESC )s#B Stroke Weight (-3 to + 3)
ESC )s#T Type Face
ESC )s0P Fixed Spacing
ESC )s1P Proportional Spacing
ESC )#X Specify font by id
Underline:
ESC &d@ Disable Underlining
ESC &d0D Enable Fixed Underlining
ESC &d3D Enable Floating Underlining
Font Management:
ESC *c#D Specify Font ID
Soft Font Management:
ESC )s#W Font Descriptor
ESC (s#W Download Character
ESC *c#E Specify Character Code
Raster Graphics:
ESC *t#R Resolution 75, 100, 150, 300
ESC *r0F Rotate Image
ESC *r3F Laserjet Landscape Compatible
ESC *r0A Start Raster Graphics at Left
ESC *r1A Start Raster Graphics at Cursor
ESC *b#W Transfer raster Graphics # bytes
ESC *rB End Raster Graphics
Print Model - Imaging:
ESC *v0T Solid Black (default)
ESC *v1T Solid White
ESC *v2T Shading Pattern
ESC *v3T Cross Hatched Pattern
ESC *v0N Transparent Source
ESC *v1N Opaque Source
ESC *v0O Transparent Pattern
ESC *v1O Opaque Pattern
Print Model - Rectangle Dimensions:
ESC *c#A Horizontal Rule/Pattern Size 1/300"
ESC *c#H Horizontal Rule/Pattern Size, Decipoints
ESC *c#B Vertical Rule Pattern Size 1/300"
ESC *c#V Vertical Rule/Pattern Size, Decipoints
Print Model - Rectangular Area Fill:
ESC *c0P Solid Black Fill
ESC *c1P Solid White Fill
ESC *c2P Shaded Fill
ESC *c3P Cross Hatched Fill
ESC *c4P User Defined
ESC *c5P Current Pattern
ESC *c#G % Shading
ESC *c1G Horiz. Lines
ESC *c2G Ver. Lines
ESC *c3G Diagonal Lines
ESC *c4G Diagonal Lines
ESC *c5G Square Grid
ESC *c6G Diagonal Grid
Macros:
ESC &f#Y Macro ID #
ESC &f0X Start Macro Def.
ESC &f1X Stop Macro Def.
ESC &f2X Execute Macro
ESC &f3X Call Macro
ESC &f4X Enable Overlay
ESC &f5X Disable Overlay
ESC &f6X Delete Macros
ESC &f7X Delete All Temporary Macros
ESC &f8X Delete Macro ID
ESC &f9X Make Temporary
ESC &f10X Make Permanent
End of Line Wrap:
ESC &s0C Enable Wrap-around Mode
ESC &s1C Disable Wrap-around Mode
Transparent Print Data:
ESC &p#X Transparent Print Data £ bytes
Reset Command:
ESC E Reset Emulator
HP LaserJet III Emulator Exclusions:
ESC (#@ Default font primary
ESC )#@ Default font primary
ESC &l#X Number of Copies
ESC &l#L Enable/Disable Perforation Skip Mode
ESC *c#F Font and Character Control
ESC Y Enable Display Functions Mode
ESC Z Disable Display Functions Mode
ESC z Perform Self Test
ESC &l#U Long-edge offset registration
ESC &l#Z Short-edge offset registration
ESC &l#G Select output bin
ESC &l#A Paper size
ESC *c#T Raster height
ESC *c#S Raster width