Tax invoice layout
A4 + backgrounds—see invoice demo.
Finance teams need invoices and statements on named office printers without browser dialogs. HTML reports + printHtml reuse web layouts.
ERP HTML → printHtml → local client → silent A4/laser output.
A4 + backgrounds—see invoice demo.
CSS page breaks—order table, long table.
batchPrint—see batchPrint API.
await webPrintPdf.printHtml(
invoiceHtml,
{ paperFormat: 'A4', printBackground: true },
{ printerName: '财务室激光', duplex: 'longEdge' }
);
printBackground: true for CSS backgroundsduplex when printer supports itManual dialog → window.print; silent named printer → web-print-pdf. Legacy Lodop: migration guide.
DOM ref, API HTML string, or printHtmlByUrl with extraOptions.
Yes—printOptions.printerName from client list.
CSS page-break + A4 pdfOptions; preview first.
batchPrint with per-task overrides.
jsPDF/Puppeteer for archives; desk print uses web-print-pdf.
The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.