vs looping printHtml?
Client-side queue—fewer round trips.
batchPrint runs multiple print jobs; args 2–4 are batch defaults—per-task options override.
batchPrint(list, pdfOptions?, printOptions?, extraOptions?)| Rule | Notes |
|---|---|
| Defaults | Args 2–4 apply to all tasks |
| Override | Per-task pdf/printOptions win |
import webPrintPdf from 'web-print-pdf';
await webPrintPdf.printHtml('<p>Hello</p>', {}, { copies: 1 });
Client-side queue—fewer round trips.
Yes—override printOptions per task.
Inspect results + formatPrintError.
Optional if each task is complete.
Server may push arrays; client executes accordingly.
The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.