Print.js
Lightweight npm helper for browser print dialogs—not production silent print to a named printer.
Print.js helps trigger browser printing; for silent print, named printers, and batch labels, compare web-print-pdf + local client. This page offers neutral selection criteria—Print.js remains reasonable when a dialog is acceptable. See window.print alternative.
This page does not dismiss Print.js—it fits dialog printing. Evaluate web-print-pdf when you need named printers, batch labels, or unattended output. Boundaries: window.print guide.
Lightweight npm helper for browser print dialogs—not production silent print to a named printer.
Open npm + official clients (Windows/macOS/Linux/domestic). HTML→PDF→silent print, batchPrint, remote WebSocket. See live demos.
For selection reference—verify against current releases.
| Dimension | Print.js | web-print-pdf |
|---|---|---|
| Silent print | No | Yes |
| Named printer | Weak | printOptions.printerName |
| Batch | DIY | batchPrint |
| Render | Browser | Chromium PDF |
| Deploy | npm only | npm + client |
| Remote push | No | WebSocket/HTTP; see WMS guide |
| Best for | Manual print | Silent ERP/WMS |
Use this matrix in reviews—if dialogs are OK, you may not need a desktop client.
| If your top priority is… | Start with | Notes |
|---|---|---|
| Manual confirm, low volume | Print.js / window.print | No client install |
| Named thermal, WMS batch | web-print-pdf + client | WMS remote labels |
| PDF file export only | jsPDF | jsPDF comparison |
| Legacy Lodop overlays | Lodop comparison | Lodop guide; parallel PoC OK |
| Vue drag designer templates | hiprint comparison | hiprint guide |
Low volume, dialog acceptable—Print.js is fine.
Labels and unattended print need the client—see receipts & labels.
Common phased migration pattern.
No—it uses the browser print dialog.
Install the Web Print Expert desktop client; npm talks over WebSocket.
Extract print HTML and call printHtml after installing client + npm—not a drop-in API swap.
jsPDF generates PDF files; web-print-pdf drives local printers. See jsPDF comparison.
Both often use browser dialogs. For silent named-printer output, evaluate web-print-pdf—see React guide.
Selection reference only. Third-party names are for identification; trademarks belong to their owners.
The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.