Print options guide
pdfOptions vs printOptions field comparison, pitfalls, and recipes for thermal labels, A4, and duplex.
Read guideSkip to main content
Official Web Print Expert documentation hub: comparison guides (Lodop, window.print), framework integration (Vue/React), business scenarios (receipts, WMS, domestic OS), client deployment, and advanced configuration—plus 25 live demos and the web-print-pdf API reference below for silent HTML printing.
25 runnable demos: demo receipts, demo thermal slips, demo package labels, watermarks, batch print. Pick a sample, view code, run with the local client.
Run printHtml, batch print, watermark, and more in the browser—no local project setup.
Guides grouped by advanced config first, then comparison, integration, scenarios, and deployment.
Remote print, print options, error handling, and authenticated URL print.
pdfOptions vs printOptions field comparison, pitfalls, and recipes for thermal labels, A4, and duplex.
Read guideClient won’t connect or errors look like [object Object]? Preflight with getConnectStatus, formatPrintError for users, and a symptom checklist.
Read guideUse printHtmlByUrl with extraOptions—cookies, httpHeaders, localStorage—to print session-protected business URLs.
Read guidePrint job message JSON is fixed; build your server to receive, store, and expose WebSocket/HTTP—desk clients enter that URL (not browser printHtml).
Read guideDev OK but production Console shows WebSocket to ws://127.0.0.1:16794 failed—Chrome LNA, HTTPS or flags fixes.
Read guideChoosing or migrating from window.print, Lodop, hiprint, and similar stacks.
Neutral comparison & decision matrix—parallel PoC; keep Lodop for precision overlays.
Read guideWhy browsers cannot silent-print, common alternatives, and how web-print-pdf with a local client avoids the dialog.
Read guideCompare hiprint vs web-print-pdf—with emphasis on web-print-pdf strengths across Windows, macOS, Linux/Kylin/UOS, npm, and HTML reports.
Read guideEnvironment checklist after browser upgrades; optional parallel HTML print evaluation.
Read guideInventory, PoC, parallel run—coexist with Lodop, not a forced cutover.
Read guideBrowser dialog print vs local client silent print for ERP/WMS.
Read guidePDF file generation vs silent local printer output.
Read guideServer PDF/archive vs silent labels on business PCs—with decision matrix and related guides.
Read guideVue, React, Next.js, and other front-end stacks with printHtml.
Call printHtml in Vue 3 admin apps for silent print without the browser dialog.
Read guideUse web-print-pdf printHtml in React 18 admin apps—no browser dialog—with a custom Hook example.
Read guideUse printHtml in App Router / Pages Router client components—no browser print dialog.
Read guideAngular 15+ Injectable service wrapping printHtml for admin HTML reports.
Read guideUniApp H5 with desktop client; mini program limits and remote desk print.
Read guideElement Plus and Ant Design follow the same pattern as the Vue/React guides above—read only if you use those UI kits.
Receipts, shipping labels, WMS, and anonymized deployment summaries.
Server-pushed shipping labels, silent warehouse output.
Read guide80mm receipts, WMS labels, and batch print with HTML + printHtml/batchPrint—one API on Win/Mac/Linux/domestic OS.
Read guideA4 scripts and Rx labels with printHtml—prescription-a4 & rx-labels demos.
Read guideSilent finance reports—invoice & order-table demos.
Read guide100×150 labels, batchPrint, and WMS remote push.
Read guide80mm silent receipts—receipt-80mm demo.
Read guideAnonymized Kylin/UOS HTML print rollout summary.
Read guideAnonymized server-push warehouse label story.
Read guideAnonymized shop-floor & office ERP print summary.
Read guideAnonymized summaries for reference; actual setups vary by environment.
A provincial agency needed silent fiscal receipts on domestic OS terminals instead of browser print dialogs.
web-print-pdf for one-click silent printA logistics WMS pushes shipping labels to warehouse PCs; printers run without manual clicks.
A manufacturer prints dynamic ERP HTML reports from UnionTech UOS workstations on the shop floor.
printHtml for work orders and QC reportsInstall and troubleshoot the desktop client on Windows, macOS, and Linux/domestic OS.
Kylin desktop deb client and web-print-pdf integration.
Read guideUOS desktop deployment for intranet printing.
Read guideInstall the Windows exe client, firewall/WebSocket tips, and web-print-pdf silent print integration.
Read guideInstall the dmg client on Apple Silicon / Intel Mac; Gatekeeper tips and web-print-pdf integration.
Read guideInstall the deb client on Kylin, UOS, and other Linux distros; use web-print-pdf.
Read guideAllow the desktop client through Windows firewall.
Read guidePrint HTML strings. PDF layout is fully controlled by HTML/CSS—ideal for dynamic reports, receipts, and order pages.
Print online HTML page URLs with cookies, headers, timeout, and other options.
Print Base64-encoded HTML content.
Submit multiple print jobs—labels, invoices, and high-volume scenarios.
Fixed job message JSON; build receive/store + expose WebSocket/HTTP; desk client enters that URL. webPrintPdf.printHtml etc. are format reference only—not called on the remote path.
Print online PDF or image files with printer and copy count options.
See the GitHub README for more APIs.
See Vue silent printing, React silent printing, and Next.js silent printing guides.
Open when you need parameter signatures or WebSocket debugging; start with the Advanced guides above.
You must install the Web Print Expert client first. The npm package only provides JavaScript APIs; printing runs on the local client.
Run npm install web-print-pdf, import it in your component, and call the APIs like any npm library.
Fixed message format. Build receive/store + expose a WebSocket/HTTP consumer API; desk clients enter that URL under Remote Print. Do not call webPrintPdf.printHtml on the remote path (npm is format reference only). See the remote print guide.