capacitor-zebra-pdfprint
v0.0.3
Published
Provides a plugin to print PDF Files with Zebra Printer portable printers. At this moment: only for Android
Maintainers
Readme
capacitor-zebra-pdfprint
provides a plugin to print with Zebra Printer portable printers
Install
npm install capacitor-zebra-pdfprint
npx cap syncAPI
echo(...)printZPL(...)printPDF(...)printerStatus(...)searchDevices(...)searchPrinters(...)isConnected()connect(...)disconnect()- Interfaces
This plugin has been tested on these real devices:
- Zebra Printer ZQ520; with these Platforms:
- Android (API > 24);
To Do:
- Add iOS Platform;
- Better Sync with Printer;
- Add Progress Status when launch "PrintPDF";
echo(...)
echo(options: { value: string; }) => anyConnection Test to Plugin
| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: any
printZPL(...)
printZPL(options: { cpcl: string; }) => anyPrints in ZPL
| Param | Type |
| ------------- | ------------------------------ |
| options | { cpcl: string; } |
Returns: any
printPDF(...)
printPDF(options: { uri: string; }) => anyPrints in PDF Format
| Param | Type |
| ------------- | ----------------------------- |
| options | { uri: string; } |
Returns: any
printerStatus(...)
printerStatus(options: { MACAddress: string; }) => anyReturns Printer Status with these properties (read-only): (see PrinterStatus interface)
| Param | Type |
| ------------- | ------------------------------------ |
| options | { MACAddress: string; } |
Returns: any
searchDevices(...)
searchDevices(options: { printers: string; }) => anySearch for any Device
| Param | Type |
| ------------- | ---------------------------------- |
| options | { printers: string; } |
Returns: any
searchPrinters(...)
searchPrinters(options: { value: string; }) => any| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: any
isConnected()
isConnected() => anyReturns: any
connect(...)
connect(options: { MACAddress: string; }) => any| Param | Type |
| ------------- | ------------------------------------ |
| options | { MACAddress: string; } |
Returns: any
disconnect()
disconnect() => voidInterfaces
PrinterStatus
| Prop | Type |
| ------------------------------- | -------------------- |
| connected | boolean |
| isReadyToPrint | boolean |
| isPaused | boolean |
| isReceiveBufferFull | boolean |
| isRibbonOut | boolean |
| isPaperOut | boolean |
| isHeadTooHot | boolean |
| isHeadOpen | boolean |
| isHeadCold | boolean |
| isPartialFormatInProgress | boolean |
| isPDFEnabled | boolean |
| friendlyName | string |
| macAddress | string |
| MAC_ADDRESS | string |
| PRODUCT_NAME | string |
| searching | boolean |
