Hewlett-Packard LaserJet Printer Control Strings

Guidelines
These printer strings should work for the Hewlett-Packard LaserJet and compatible printers.

The # character represents a variable that should be replaced by a number. For example, the string for setting the number of copies to print is \027&l###X. To print 15 copies, you would enter \027&l15X. Also, be careful to distinguish between upper- and lowercase letters; the figure 0 and the capital letter O; and the lowercase l and the number 1.
--------------------------------------------------------------------------------
Control Strings


Page Setup
Portrait
\027&l0O
Landscape
\027&l1O

Line Spacing
3 lines/inch
\027&l3D
4 lines/inch
\027&l4D
6 lines/inch
\027&l6D
8 lines/inch
\027&l8D

Letter Spacing
Proportional
\027(s1P
Fixed
\027(s0P

Point Size
Primary point size (in # of points)
\027(s#V

Stroke Weight
Light
\027(s-3B
Medium
\027(s0B
Bold
\027(s3B


Misc. Printer Control
Underline on
\027&dD
Underline off
\027&d@
Floating on
\027&3D


Paper Control
# of copies
\027&l###X
Eject page
\027&l0H
Feed from tray
\027&l1H
Manual feed
\027&l2H


Typeface
Line printer
\027(s0T
Pica
\027(s1T
Elite
\027(s2T
Courier
\027(s3T
Helvetica
\027(s4T
Times Roman
\027(s5T

Comments

Popular posts from this blog

Linux File and Directory Permissions

How to Disable SSL for Webmin

INSTALL CISCO VPN CLIENT ON WINDOWS 10 (32 & 64 BIT). FIX REASON 442