QZ Tray
PaketPrints ZPL, ESC/POS or PDF from a web page via an app on the user's computer
- 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
- Install QZ Tray on each computer that prints
- Run npm install qz-tray
- 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