Додатки браузера Firefox
  • Розширення
  • Теми
    • для Firefox
    • Словники та локалізації
    • Інші сайти браузера
    • Додатки для Android
Увійти
Перегляд Zebra Printing

Zebra Printing автор Daniel Nitz

Allows to print ZPL to a network connected Zebra printer.

0 (0 reviews)0 (0 reviews)
26 Users26 Users
Для використання цього розширення вам потрібен Firefox
Завантажити Firefox та отримати розширення
Завантажити файл

Метадані розширення

Знімки екрана
Про це розширення
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 post 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 implementation example can be found here:

https://danielnitz.github.io/zebra-printing-chrome-extension/web-app-example/index.html
Rated 0 by 0 reviewers
Увійдіть, щоб оцінити це розширення
Ще немає оцінок

Рейтинг збережено

5
0
4
0
3
0
2
0
1
0
Ще немає відгуків
Permissions and dataДокладніше

Необхідні дозволи:

  • Отримувати доступ до ваших даних для всіх вебсайтів

Необов'язкові дозволи:

  • Отримувати доступ до ваших даних для всіх вебсайтів
Більше інформації
Посилання додатка
  • Сайт підтримки
  • Електронна пошта підтримки
Версія
1.7
Розмір
228,75 КБ
Востаннє оновлено
6 місяців тому (21 лют 2025 р.)
Пов'язані категорії
  • Інструменти розробника
Ліцензія
Ліцензія MIT
Історія версій
  • Переглянути всі версії
Додати до збірки
Повідомити про цей додаток
Інші розширення від Daniel Nitz
  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

Перейти на домівку Mozilla

Додатки

  • Про
  • Блог додатків Firefox
  • Семінар з розширень
  • Центр розробника
  • Політики розробників
  • Блог спільноти
  • Форум
  • Повідомити про помилку
  • Настанови з написання відгуків

Браузери

  • Desktop
  • Mobile
  • Enterprise

Продукти

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Приватність
  • Файли cookie
  • Правові положення

За винятком випадків зазначених тут, вміст цього сайту ліцензовано на умовах ліцензії Creative Commons Attribution Share-Alike License v3.0, або будь-якою новішою версією.