LPAPI
npm install lpapi-plugin
npx cap sync
getPairedPrinters()
connectPrinter(...)
disconnectPrinter()
printText(...)
printText1DBarcode(...)
getPrinterState()
- Interfaces
getPairedPrinters() => Promise<any>
Returns: Promise<any>
connectPrinter(options: PrinterAddress) => Promise<any>
Param | Type |
---|---|
options |
PrinterAddress |
Returns: Promise<any>
disconnectPrinter() => Promise<any>
Returns: Promise<any>
printText(options: PrinterOptions) => Promise<any>
Param | Type |
---|---|
options |
PrinterOptions |
Returns: Promise<any>
printText1DBarcode(options: PrinterOptions) => Promise<any>
Param | Type |
---|---|
options |
PrinterOptions |
Returns: Promise<any>
getPrinterState() => Promise<any>
Returns: Promise<any>
Prop | Type |
---|---|
name |
string |
address |
string |
Prop | Type |
---|---|
text |
string |
x |
number |
y |
number |
width |
number |
height |
number |
textHeight |
number |
labelWidth |
number |
labelHeight |
number |