@kevbarrios/cordova-plugin-zbtprinter

1.0.0 • Public • Published

zbtprinter

A Cordova driver for Zebra printers

Plugin based of: https://github.com/michael79bxl/zbtprinter

Example:

Printer ZPL:

cordova.plugins.zbtprinter.print("AC:3F:A4:52:73:C4","^XA^FO10,10^AFN,26,13^FDHello, World!^FS^XZ",
    (success) => { 
        alert("Print ok"); 
    }, function(fail) => { 
        alert(fail); 
    }
);

List Linked Devices:

window.cordova.plugins.zbtprinter.find(
  (data) => {
    alert(JSON.stringify(data)); 
    console.log(data);
  },
  (fail) => {
    alert(fail);
  }
);

Install Cordova

cordova plugin add https://github.com/kevbarrios/zbtprinter.git

ZPL - Zebra Programming Language For more information about ZPL please see the PDF Official Manual

Package Sidebar

Install

npm i @kevbarrios/cordova-plugin-zbtprinter

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

331 kB

Total Files

8

Last publish

Collaborators

  • kevbarrios