Zebra Printing
Overview
Zebra Printing is a Chrome extension developed by Daniel Nitz.
According to the data from Chrome web store, current version of Zebra Printing is 1.2, updated on 2020-07-08.
4,000+ users have installed this extension.
2 users have rated this extension with an average rating of .
Allows to print ZPL to a network connected Zebra printer.
NOTE: This is an extension useful for developers who want to simply print ZPL labels directly from their web apps.
Most Zebra Printers have a HTTP POST endpoint through which ZPL can be directly printed without the need for an installed driver, print dialogs popping up or other locally installed software.
Unfortunately those printers don't set any CORS headers which makes it impossible to use this HTTP endpoint in modern browser-based apps.
This extension circumvents this issue.
In your web app you can now directly print to Zebra printers by using window.postMessage():
window.postMessage({
type: "zebra_print_label",
zpl: "^XA^PW400^LL200^FO20,20^A0N,30,30^FDThis is a TEST^FS^XZ",
url: "http://192.168.37.36/pstprnt"
}, "*");
The Zebra Printing extension will listen to those messages and print the zpl to the url.
type: The extension will only pick up messages where the type is zebra_print_label
zpl: The ZPL string to be printed
url: The URL of the printer
The extension will also post a message to the web page upon loading. This way in your web app you can check if the extension is installed:
window.addEventListener("message", function (event) {
if (!event.data.ZebraPrintingVersion) {
return;
}
// extension installed, enable print button or whatever...
console.log(event.data);
});
The event will contain two fields:
ZebraPrintingExtensionId: The extension ID (ndikjdigobmbieacjcgomahigeiobhbo)
ZebraPrintingVersion: The version number of the installed extension
Zebra Printing Alternatives
Latest Reviews
See More
Maarten Wolzak
2020-10-06
Works as advertised. Perfect to start learning ZPL! |
Pawel Suwala
2022-12-30
Absolutely brilliant workaround for printing directly from the browser. |
Pawel Suwala
2022-12-30
Absolutely brilliant workaround for printing directly from the browser. |
Maarten Wolzak
2020-10-06
Works as advertised. Perfect to start learning ZPL! |
Pawel Suwala
2022-12-30
Absolutely brilliant workaround for printing directly from the browser. |