printer-escape-codes

Specifies the printer escape codes that this actual destination uses to print line-data jobs.

GUI label

Escape codes

DSS

PSF

Type

Resettable, single-valued

Allowed Values

You can enter a string up to 255 characters long containing the printer escape codes.

Syntax

Escape codes must be in lowercase format and cannot include spaces. You must enter unprintable characters, and can enter printable characters, in this format:

\xnn
where nn is a two-character (one-byte) hexadecimal code. For example:
\x1b
represents ESC

Default Value

No default value

Usage Guidelines

Use printer escape codes to control fonts, line spacing, and the size of the output page, enabling more than 80 characters to print on a line. For example, this hex string:

\x1b\x5b\x53\x0c\x00\x01\x20\x01\x20\x00\x00\x4b\x60\x38\x40\x4e\xc0
translates to these values:
1b
ESC
5b
Left square bracket
53
S
0c00
Length of command
0120
Top margin (0.2 inches)
0120
Bottom margin (0.2 inches)
0000
Left margin (0 inches)
4b60
Right margin (13.4 inches)
3840
Page length (10 inches)
4ec0
Page width (14 inches)

The first four values (ESC, [, S, command length) are always the same in a string of escape codes specifying page dimensions. The values representing the margins and page length and width are hex values in 1440ths of an inch and can be changed to meet your specifications. All dimensions are measured as if the page were printed in portrait.