Retail POS thermal receipt silent print

80mm thermal receipts for retail/POS without dialogs. HTML + printHtml—see also receipts guide.

Print architecture

POS web UI → printHtml → local client → thermal printer.

Typical scenarios

80mm

Grocery / restaurant POS

80mm demo; zero margins.

Dual screen

Preview then silent

Use preview action for tuning.

Mixed chain

Win tills + Mac back office

Same npm API, different installers.

Integration steps

  1. Install client on till PC
  2. Fix HTML to 80mm width
  3. Set printerName
  4. getConnectStatus before print

80mm receipt parameters

await webPrintPdf.printHtml(
  receiptHtml,
  { width: '80mm', height: '120mm', printBackground: true },
  { printerName: '热敏打印机', copies: 1 }
);

Parameter tips

  • 80mm width in pdfOptions
  • formatPrintError for UX

Selection notes

window.print shows a dialog—use client silent print for POS.

Troubleshooting

  • Blank pages → zero margins
  • Tiny text → test px/pt on device

Related guides on this site

FAQ

Silent in POS browser?

Yes—with desktop client + web-print-pdf.

Pick USB thermal printer?

printOptions.printerName from client list.

Offline till?

getConnectStatus; queue reprint when client returns.

vs ESC/POS?

HTML layouts are easier to maintain.

UniApp POS H5?

H5 on PC browser works; mini programs cannot reach desktop client.

Client deployment by platform

The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.

Download client — free trial View npm package Documentation