Grocery / restaurant POS
80mm demo; zero margins.
For retail IT and procurement: 80mm thermal POS receipts without dialogs—architecture, chain rollout, and TCO vs window.print / cloud SaaS. See also receipts guide.
POS web UI → printHtml → local client → thermal printer.
80mm demo; zero margins.
Use preview action for tuning.
Same npm API, different installers.
await webPrintPdf.printHtml(
receiptHtml,
{ width: '80mm', height: '120mm', printBackground: true },
{ printerName: 'Thermal printer', copies: 1 }
);
| Approach | Silent | Named printer |
|---|---|---|
| window.print | No | Weak |
| web-print-pdf + client | Yes | Yes |
Yes—with desktop client + web-print-pdf.
printOptions.printerName from client list.
getConnectStatus; queue reprint when client returns.
HTML layouts are easier to maintain.
H5 on PC browser works; mini programs cannot reach desktop client.
The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.