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
Downloads
7
Maintainers
Readme
capacitor-zebra-pdfprint
provides a plugin to print with Zebra Printer portable printers
Install
npm install capacitor-zebra-pdfprint
npx cap sync
API
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; }) => any
Connection Test to Plugin
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: any
printZPL(...)
printZPL(options: { cpcl: string; }) => any
Prints in ZPL
| Param | Type |
| ------------- | ------------------------------ |
| options
| { cpcl: string; } |
Returns: any
printPDF(...)
printPDF(options: { uri: string; }) => any
Prints in PDF Format
| Param | Type |
| ------------- | ----------------------------- |
| options
| { uri: string; } |
Returns: any
printerStatus(...)
printerStatus(options: { MACAddress: string; }) => any
Returns Printer Status with these properties (read-only): (see PrinterStatus interface)
| Param | Type |
| ------------- | ------------------------------------ |
| options
| { MACAddress: string; } |
Returns: any
searchDevices(...)
searchDevices(options: { printers: string; }) => any
Search 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() => any
Returns: any
connect(...)
connect(options: { MACAddress: string; }) => any
| Param | Type |
| ------------- | ------------------------------------ |
| options
| { MACAddress: string; } |
Returns: any
disconnect()
disconnect() => void
Interfaces
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 |