Specifications

135
ZPL Commands
~DY
9/15/06 ZPL II Programming Guide 45541L-004 Rev. A
Comments For more information on ZB64 encoding and compression, see
ZB64 Encoding and Compression on page 367.
t
= total number of
bytes in file
Accepted Values:
.BMP
This parameter refers to the actual size of the file, not the
amount of disk space.
.GRF images: the size after decompression into memory
This parameter refers to the actual size of the file, not the
amount of disk space.
.PCX
This parameter refers to the actual size of the file, not the
amount of disk space.
.PNG images:
This parameter refers to the actual size of the file, not the
amount of disk space.
.TTF
This parameter refers to the actual size of the file, not the
amount of disk space.
w = total number of
bytes per row
Accepted Values:
.GRF images: number of bytes per row
.PNG images: value ignored
.TTFimages: value ignored
images: value ignored
data = data
ASCII hexadecimal encoding, ZB64, or binary data, depending on
b
.
A, P = ASCII hexadecimal or ZB64
B, C = binary
When binary data is sent, all control prefixes and flow control
characters are ignored until the total number of bytes needed for
the graphic format is received.
Note • The ~DY command and the binary font file or binary graphic file can be sent as two
separate files. If the files are sent to the printer separately, the data light might remain lit until
the printer receives the TrueType font file. SIZE number of bytes must be received for the
download to complete successfully. The graphic files must be monochrome (black and white).
Example • This is an example of how to download a binary TrueType Font file of Size bytes
using the name fontfile.ttf and storing it to permanent flash memory on the printer:
~DYE:FONTFILE.TTF,B,T,SIZE,,
Parameters Details