Outpatient/inpatient scripts
Use A4 pdfOptions; preview first. See A4 demo.
HIS systems often need A4 prescriptions and small pharmacy labels without browser dialogs. Use HTML/CSS + printHtml / batchPrint via web-print-pdf on Win/Mac/domestic desktops.
Business HTML → printHtml → local WebSocket client → PDF → silent printer output.
Use A4 pdfOptions; preview first. See A4 demo.
Custom width/height. See Rx labels demo.
npm install web-print-pdfprintHtml or batchPrint with printOptions.printerNameawait webPrintPdf.printHtml(
prescriptionHtml,
{ paperFormat: 'A4', printBackground: true, margin: { top: '10mm', bottom: '10mm' } },
{ printerName: '办公室激光', copies: 1 }
);
batchPrint at peak—see print optionsformatPrintError—see error handlingYes—with web-print-pdf and the local client.
Yes—change pdfOptions paper size and HTML template.
Yes—Kylin/UOS deb clients share the same API.
Use batchPrint; per-task options override batch defaults.
Lodop for legacy overlays; HTML Rx can PoC web-print-pdf in parallel.
The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.