Grocery / restaurant POS
80mm demo; zero margins.
80mm thermal receipts for retail/POS without dialogs. HTML + printHtml—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: '热敏打印机', copies: 1 }
);
window.print shows a dialog—use client silent print for POS.
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.