Skip to content
On this page

Interface: ZplLib

command

command: number[]

@description: command array

Defined in

interface/ZplLib.ts:9


encoding

encoding: string

@description: Encoding method, default utf-8

Defined in

interface/ZplLib.ts:5


init

init: () => void

Type declaration

▸ (): void

@description: init the command

Returns

void

Defined in

interface/ZplLib.ts:15


setBarCode

setBarCode: (x: number, y: number, width: number, height: number, data: string, o: string, e: string, f: string, g: string) => void

Type declaration

▸ (x, y, width, height, data, o, e, f, g): void

Parameters
NameTypeDescription
xnumberx start position
ynumbery start position
widthnumberwidth of the bar code(in dots)
heightnumberheight of the bar code(in dots)
datastringthe text to print
ostring(orientation) N = normal R = rotated 90 degrees (clockwise) I = inverted 180 degrees B = read from bottom up, 270 degrees
estring(print check digit) N = no Y = yes
fstring(print interpretation line) N = no Y = yes
gstring(print interpretation line above code) N = no Y = yes
Returns

void

Description

Print the barcode.

Defined in

interface/ZplLib.ts:39


setEncoding

setEncoding: (encoding: string) => void

Type declaration

▸ (encoding): void

@description: Set encoding type

Parameters
NameTypeDescription
encodingstringencoding type
Returns

void

Defined in

interface/ZplLib.ts:62


setPrint

setPrint: () => void

Type declaration

▸ (): void

@description: execute print

Returns

void

Defined in

interface/ZplLib.ts:19


setQRCode

setQRCode: (x: number, y: number, data: string, model: number, c: number, d: string, e: string) => void

Type declaration

▸ (x, y, data, model, c, d, e): void

@description: print QR code

Parameters
NameTypeDescription
xnumberx start position
ynumbery start position
datastringthe text to print
modelnumberValues: 1 (original) and 2 (enhanced – recommended) Default: 2
cnumberValues:1 to 10 Default:1 on 150 dpi printers ;2 on 200 dpi printers ;3 on 300 dpi printers ;6 on 600 dpi printers
dstringValues: H = ultra-high reliability level Q = high reliability level M = standard level L = high density level Default: Q = if emptyM = invalid values
estringValues: 0 - 7 Default: 7
Returns

void

Defined in

interface/ZplLib.ts:56


setText

setText: (x: number, y: number, data: string) => void

Type declaration

▸ (x, y, data): void

@description: set text

Parameters
NameTypeDescription
xnumberx start position
ynumbery start position
datastringthe text to print
Returns

void

Defined in

interface/ZplLib.ts:26