QZ Tray

Paket

Prints ZPL, ESC/POS or PDF from a web page via an app on the user's computer

Fiyat
Free, open source; paid support plans
Erişim
None; a paid certificate stops prompts

Hakkında

Open-source (LGPL-2.1) desktop app plus JavaScript library: a web page talks to QZ Tray on the user's computer to print ZPL, EPL, ESC/POS, PDF, HTML or images to local and network printers, and to read scales. Every workstation installs it; without a paid certificate users see trust prompts.

Neler yapabilirsin

  • Print ZPL labels to a Zebra printer from the browser on the user's computer
  • Print receipts to a thermal printer from a web POS without a print dialog
  • Read a USB or serial scale from a web app through the local QZ Tray app

Başlarken

  1. Install QZ Tray on each computer that prints
  2. Run npm install qz-tray
  3. Connect, find the printer and send raw or PDF data

Örnek kod

import qz from "qz-tray";

await qz.websocket.connect();
const printer = await qz.printers.find("zebra");
const config = qz.configs.create(printer);
await qz.print(config, ["^XA^FO50,50^ADN,36,20^FDRAW ZPL EXAMPLE^FS^XZ"]);

Ayrıntılar

Barındırma
Kendi bilgisayarında
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript
MCP sunucusu
Yok

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .