Live demos

Enable JavaScript to use the live demos.

Your browser is too old for this page. Please use the latest Chrome, Edge, Firefox, or Safari.

Browse the sample list on the left and preview layouts plus sample code on the right. Run a demo to print silently or preview PDF via web-print-pdf and the local client. Install and launch the client first.

Client

If results look wrong, install the latest Web Print Expert client from our site first (older builds may cause layout drift).

Layout

Preview and print follow standard HTML/CSS only—no hidden tricks. What you style is what you get.

15 - Delivery note

A4 sales delivery note: customer/shipping info, line items, totals, and ship/receive signature blocks.

Sample code

const html = `<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>销售发货单</title>
  <style>
    html, body { margin: 0; padding: 0; }
    .biz-sheet {
      position: relative;
      width: 794px;
      height: 1123px;
      box-sizing: border-box;
      background: #fff;
      font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
      color: #0F172A;
      overflow: hidden;
    }
  </style>
</head>
<body>
  <div class="biz-sheet">
<div style="position:absolute;left:514px;top:50px;width:232px;height:36px;box-sizing:border-box;overflow:hidden;font-size:24px;font-weight:700;color:#0F172A;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">销售发货单</div>
<div style="position:absolute;left:48px;top:52px;width:320px;height:30px;box-sizing:border-box;overflow:hidden;font-size:18px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">杭州云印科技有限公司</div>
<div style="position:absolute;left:48px;top:84px;width:420px;height:16px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">杭州市余杭区文一西路 969 号 · 0571-8888 6666</div>
<div style="position:absolute;left:514px;top:88px;width:232px;height:16px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#94A3B8;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">DELIVERY NOTE</div>
<div style="position:absolute;left:48px;top:122px;width:698px;height:2px;box-sizing:border-box;overflow:hidden;background:#334155"></div>
<div style="position:absolute;left:48px;top:140px;width:60px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">单据编号</div>
<div style="position:absolute;left:112px;top:140px;width:170px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">DN20261026001</div>
<div style="position:absolute;left:300px;top:140px;width:40px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">日期</div>
<div style="position:absolute;left:344px;top:140px;width:140px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">2026-10-26</div>
<div style="position:absolute;left:48px;top:176px;width:698px;height:76px;box-sizing:border-box;overflow:hidden;border:1px solid #E2E8F0;box-sizing:border-box"></div>
<div style="position:absolute;left:60px;top:186px;width:60px;height:18px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">收货单位</div>
<div style="position:absolute;left:124px;top:186px;width:240px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">杭州示例商贸有限公司</div>
<div style="position:absolute;left:400px;top:186px;width:60px;height:18px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;white-space:pre-wrap">收货地址</div>
<div style="position:absolute;left:464px;top:186px;width:268px;height:56px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;white-space:pre-wrap">江苏省苏州市工业园区星湖街 328 号创意产业园 6 栋</div>
<div style="position:absolute;left:60px;top:210px;width:60px;height:18px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">联系人</div>
<div style="position:absolute;left:124px;top:210px;width:240px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">王芳</div>
<div style="position:absolute;left:60px;top:232px;width:60px;height:18px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">联系电话</div>
<div style="position:absolute;left:124px;top:232px;width:240px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">137 0013 7000</div>
<div style="position:absolute;left:48px;top:272px;width:698px;height:514px;box-sizing:border-box;overflow:hidden;overflow:hidden"><table style="width:100%;max-width:100%;border-collapse:collapse;table-layout:fixed;box-sizing:border-box"><thead><tr><th style="width:7.1633%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#F1F5F9;color:#0F172A;font-size:10px;font-weight:600;text-align:center">序号</th><th style="width:28.6533%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#F1F5F9;color:#0F172A;font-size:10px;font-weight:600;text-align:left">品名</th><th style="width:14.3266%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#F1F5F9;color:#0F172A;font-size:10px;font-weight:600;text-align:left">规格</th><th style="width:7.1633%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#F1F5F9;color:#0F172A;font-size:10px;font-weight:600;text-align:center">单位</th><th style="width:8.5960%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#F1F5F9;color:#0F172A;font-size:10px;font-weight:600;text-align:right">数量</th><th style="width:12.8940%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#F1F5F9;color:#0F172A;font-size:10px;font-weight:600;text-align:right">单价</th><th style="width:21.2034%;box-sizing:border-box;border:1px solid
// …

Result

  • If printing fails or the client cannot connect, see Local print works—production does not? (common on HTTP deployments).
  • The client’s built-in Run examples page has more editable demos; this page complements it.
  • Utility demos (connection, printer list) return JSON only—no print job.
Download client free View npm package