0.0.3 • Published 3 years ago

capacitor-zebra-pdfprint v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

capacitor-zebra-pdfprint

provides a plugin to print with Zebra Printer portable printers

Install

npm install capacitor-zebra-pdfprint
npx cap sync

API

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

ParamType
options{ value: string; }

Returns: any


printZPL(...)

printZPL(options: { cpcl: string; }) => any

Prints in ZPL

ParamType
options{ cpcl: string; }

Returns: any


printPDF(...)

printPDF(options: { uri: string; }) => any

Prints in PDF Format

ParamType
options{ uri: string; }

Returns: any


printerStatus(...)

printerStatus(options: { MACAddress: string; }) => any

Returns Printer Status with these properties (read-only): (see PrinterStatus interface)

ParamType
options{ MACAddress: string; }

Returns: any


searchDevices(...)

searchDevices(options: { printers: string; }) => any

Search for any Device

ParamType
options{ printers: string; }

Returns: any


searchPrinters(...)

searchPrinters(options: { value: string; }) => any
ParamType
options{ value: string; }

Returns: any


isConnected()

isConnected() => any

Returns: any


connect(...)

connect(options: { MACAddress: string; }) => any
ParamType
options{ MACAddress: string; }

Returns: any


disconnect()

disconnect() => void

Interfaces

PrinterStatus

PropType
connectedboolean
isReadyToPrintboolean
isPausedboolean
isReceiveBufferFullboolean
isRibbonOutboolean
isPaperOutboolean
isHeadTooHotboolean
isHeadOpenboolean
isHeadColdboolean
isPartialFormatInProgressboolean
isPDFEnabledboolean
friendlyNamestring
macAddressstring
MAC_ADDRESSstring
PRODUCT_NAMEstring
searchingboolean