ZPL commands
~DY · Download Objects
Downloads files such as graphics PNG, GRF , TrueType/OpenType fonts or bitmaps into printer memory.
Downloads files such as graphics (PNG, GRF), TrueType/OpenType fonts or bitmaps into printer memory.
Parameters
~DYd:f,b,x,t,w,data- d:f: Drive and file name without extension (e.g.E:LOGO)~DYd:f,b,x,t,w,data- b: Data format: A = uncompressed ASCII hex, B = uncompressed binary, C = AR-compressed binary, P = PNG~DYd:f,b,x,t,w,data- x: File type/extension, e.g. G = raw bitmap (.GRF), P = PNG (.PNG), T = TrueType/OpenType (.TTF/.OTF), E = TrueType extension (.TTE), B = bitmap~DYd:f,b,x,t,w,data- t: Total number of bytes in the file~DYd:f,b,x,t,w,data- w: Bytes per row (.GRF only)~DYd:f,b,x,t,w,data- data: File data in the selected format
Example
~DYE:LOGO,A,P,2048,,
89504E470D0A1A0A...
^XA
^FO50,50^IME:LOGO.PNG^FS
^XZ
Tip
~DY is the usual way to store logos (PNG, GRF) and TrueType fonts on the printer - binary data (b = B) is more compact than ASCII hex (b = A). zplCloud's font management also uses ~DY to transfer TTF fonts.