热敏小票与快递面单静默打印
打印架构
典型场景
接入步骤
80mm 小票关键参数示例
// WMS server: enqueue fixed-format jobs (remote path — do not call printHtml)
const task = {
id: crypto.randomUUID(),
timestamp: Date.now(),
type: 'printHtml',
content: labelHtml,
pdfOptions: { width: '100mm', height: '150mm', printBackground: true },
printOptions: { printerName: stationPrinter },
extraOptions: { requestTimeout: 15 }
};
queue.push(task);
// Desk client: set Remote print URL to your WebSocket/HTTP endpoint