A plugin to print using thermal printers
npm install thermal-printer
npx cap sync
printFormattedText(...)
requestPermissions(...)
listPrinters()
launchIntent(...)
launchIntentPDF(...)
- Interfaces
printFormattedText(data: PrintFormattedText) => Promise<void>
Param | Type |
---|---|
data |
PrintFormattedText |
requestPermissions(data: PrinterToUse) => Promise<void>
Param | Type |
---|---|
data |
PrinterToUse |
listPrinters() => Promise<{ printers: any[]; }>
Returns: Promise<{ printers: any[]; }>
launchIntent(data: Intent) => Promise<void>
Param | Type |
---|---|
data |
Intent |
launchIntentPDF(data: Intent) => Promise<void>
Param | Type |
---|---|
data |
Intent |
Prop | Type |
---|---|
text |
string |
Prop | Type |
---|---|
id |
string | number |
Prop | Type |
---|---|
param |
string |