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.

83 - Clinic satisfaction survey

A4 clinic satisfaction survey: visit-flow ratings and feedback for outpatient exits.

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:48px;top:56px;width:440px;height:32px;box-sizing:border-box;overflow:hidden;font-size:22px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">就诊满意度调查问卷</div>
<div style="position:absolute;left:500px;top:62px;width:246px;height:20px;box-sizing:border-box;overflow:hidden;font-size:11px;font-weight:700;color:#0284C7;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">内科门诊</div>
<div style="position:absolute;left:500px;top:86px;width:246px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#94A3B8;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">就诊科室</div>
<div style="position:absolute;left:48px;top:94px;width:440px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#94A3B8;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">PATIENT SATISFACTION SURVEY</div>
<div style="position:absolute;left:88px;top:123px;width:140px;height:20px;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:322px;top:123px;width:120px;height:20px;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-27</div>
<div style="position:absolute;left:48px;top:126px;width:36px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">患者</div>
<div style="position:absolute;left:258px;top:126px;width:60px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">就诊日期</div>
<div style="position:absolute;left:500px;top:126px;width:246px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#94A3B8;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">请按就诊环节依次勾选</div>
<div style="position:absolute;left:88px;top:143px;width:140px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:322px;top:143px;width:120px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:48px;top:170px;width:698px;height:52px;box-sizing:border-box;overflow:hidden;background:#F0F9FF"></div>
<div style="position:absolute;left:65px;top:186px;width:138px;height:20px;box-sizing:border-box;overflow:hidden;font-size:9.5px;font-weight:700;color:#0369A1;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">① 挂号缴费</div>
<div style="position:absolute;left:210px;top:186px;width:30px;height:20px;box-sizing:border-box;overflow:hidden;font-size:12px;font-weight:700;color:#0284C7;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">→</div>
<div style="position:absolute;left:240px;top:186px;width:138px;height:20px;box-sizing:border-box;overflow:hidden;font-size:9.5px;font-weight:700;color:#0369A1;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">② 候诊</div>
<div style="position:absolute;left:384px;top:186px;width:30px;height:20px;box-sizing:border-box;overflow:hidden;font-size:12px;font-weight:700;color:#0284C7;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">→</div>
<div style="position:absolute;left:414px;top:186px;width:138px;height:20px;box-sizing:border-box;overflow:hidden;font-size:9.5px;font-weight:700;color:#0369A1;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">③ 医生问诊</div>
<div style="position:absolute;left:558px;top:186px;width:30px;height:20px;box-sizing:border-box;overflow:hidden;font-size:12px;font-weight:700;color:#0284C7;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">→</div>
<div style="position:absolute;left:589px;top:186px;width:138px;height:20px;box-sizing:border-box;overflow:hidden;font-size:9.5px;font-weight:700;color:#0369A1;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">④ 取药离院</div>
<div style="position:absolute;left:48px;top:246px;width:698px;height:72px;box-sizing:border-box;overflow:hidden;background:#FFFFFF;border:1px solid #E2E8F0;box-sizing:border-box"></div>
<div style="position:absolute;left:62px;top:256px;width:56px;height:18px;box-sizing:border-box;overflow:hidden;background:#E0F2FE"></div>
<div style="position:absolute;left:62px;top:256px;width:56px;height:18px;box-sizing:border-box;overflow:hidden;font-size:7.5px;color:#0369A1;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">挂号</div>
<div style="position:absolute;left:130px;top:256px;width:600px;height:18px;box-sizing:border-box;overflow:hidden;font-size:9.5px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">挂号与缴费流程是否便捷?</div>
<div style="position:absolute;left:62px;top:286px;width:670px;height:16px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#475569;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">○ 非常便捷  ○ 便捷  ○ 一般  ○ 繁琐</div
// …

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