Docs

This plugin starts a web server at http://localhost:8000. The Impresora.js file just makes requests to this server. Feel free to take a look at the source code.
Important: remember that, in order to use the plugin, it must be running in the background

Usage

Include the Impresora.js file in your webapp. This can be achieved by including the file:

Or by copying the full code inside your project. This will be useful if you use Angular or some framework. Just remember to use the updated source code


Now you can use the Impresora class. You can create an instance of it, call methods and finally call to imprimirEnImpresora this way:

And that's all!. Remember to take a look at the Impresora.js source code so you can see more functions to align, change size, print barcodes and so on