Allows to print ZPL to a network connected Zebra printer.

Latest Version

Version
1.6
Update
September 25, 2024
Size
221KiB
Developer
Category
Users
7,000+
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
See more

Zebra Printing Extension

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

A simple example can be found here:

https://danielnitz.github.io/zebra-printing-chrome-extension/web-app-example/index.html
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Zebra Printing", "version": "1.6", "description": "Allows to print ZPL to a network connected Zebra printer.", "icons": { "128": "zebra128.png" }, "author": "Daniel Nitz", "permissions": [ "activeTab" ], "host_permissions": [ "" ], "content_scripts": [ { "matches": [ "" ], "js": [ "content.js" ] } ], "background": { "service_worker": "background.js" }, "action": {}, "offline_enabled": true}
Read more

Similar Extensions

icon

ZPL label Printer Extension · Productivity 7,000+ 5 ★ 456KiB

icon

LabelBasic Extension · Social & Communication 7,000+ 0 ★ 40.59KiB

icon

Zebra Printer Extension · Productivity 7,000+ 1 ★ 9.01KiB

icon

Print Extension · Productivity 7,000+ 131 ★ 145KiB

icon

Chrome Direct Print Extension · Productivity 7,000+ 14 ★ 189KiB

icon

ZPL printer / JS provider Extension · Developer Tools 7,000+ 0 ★ 17.06KiB

icon

Print for Google Chrome Extension · Productivity 7,000+ 622 ★ 364KiB

icon

Label Resizer - FBA Labels to Thermal & Avery Extension · Productivity 7,000+ 11 ★ 122KiB

icon

VM Zebra Printer Extension · Productivity 7,000+ 0 ★ 59.35KiB

icon

Easy Label Print for Amazon Extension · Productivity 7,000+ 4 ★ 182KiB

icon

ZPL emulator Extension · Developer Tools 7,000+ 0 ★ 380KiB

icon

AZLabels - Thermal Labels For Amazon Extension · Productivity 7,000+ 5 ★ 166KiB

icon

Ninja Remote Printer Extension · Developer Tools 7,000+ 0 ★ 11.02KiB

icon

IPP / CUPS printing for Chrome & Chromebooks Extension · Productivity 7,000+ 367 ★ 1.25MiB

icon

Ninja Printer Extension · Developer Tools 7,000+ 3 ★ 11.49KiB

icon

Table Browser Caller for D365FO Extension · Developer Tools 7,000+ 4 ★ 590KiB

icon

Print Extension Extension · Productivity 7,000+ 4 ★ 490KiB

icon

Print your own labels and stickers Extension · Productivity 7,000+ 11 ★ 608KiB

icon

Extensão do Mercado Turbo Extension · Productivity 7,000+ 9 ★ 15.12MiB

icon

D365 F&O Task Recorder Screenshots and Video Extension · Productivity 7,000+ 6 ★ 171KiB

icon

Cumulus Web Extension · Productivity 7,000+ 25 ★ 1.75MiB

icon

UpSeller - Product Importer Extension · Shopping 7,000+ 66 ★ 1.24MiB

icon

Dynamics 365 F&O table browser Extension · Productivity 7,000+ 5 ★ 26.55KiB

icon

Dynamics 365 Finance & Operations Dev Tools Extension · Developer Tools 7,000+ 1 ★ 78.14KiB

User reviews

icon

Ilmi Nur Azis Aqli Mubarok (ID: 00000043df700155) Voted 5 ★ - Updated 06/25/2023 This awsome extension makes my life easier, thank you very much!

icon

Pawel Suwala (ID: 000000e1a03e7066) Voted 5 ★ - Updated 12/30/2022 Absolutely brilliant workaround for printing directly from the browser. Works as advertised. I'm using it every day - thank you!

icon

Maarten Wolzak (ID: 000000de8d68f26a) Voted 5 ★ - Updated 10/06/2020 Works as advertised. Perfect to start learning ZPL! Please be aware that this plugin enables you to make your printer-setup insecure and sensitive to Man-In-The-Middle attacks from hackers. I advise you to never use this plugin in a production environment. Instead: load a TLS certificate to your printer to enable HTTPS communication! But again: This plugin is a real help!