capacitor-zpl-printer
Connects with label printers that use the ZPL language
Install
npm install capacitor-zpl-printer
npx cap sync
API
print(...)
print(options: PrintOptions) => Promise<any>
send ZPL code to a printer through an IP address and a port to be printed
Param | Type |
---|---|
options |
PrintOptions |
Returns: Promise<any>
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
Interfaces
PrintOptions
Prop | Type | Description |
---|---|---|
ip |
string |
IP address where the printer is located |
port |
number |
Port through which the printer is connected |
zpl |
string |
ZPL code to be printed |
prints |
number |
Number of impressions, by default one is printed |