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.

72 - Employee satisfaction survey

A4 employee satisfaction survey: role info, workplace ratings, and anonymous comments.

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:0px;top:0px;width:794px;height:132px;box-sizing:border-box;overflow:hidden;background:#0F766E"></div>
<div style="position:absolute;left:48px;top:40px;width:460px;height:36px;box-sizing:border-box;overflow:hidden;font-size:24px;font-weight:700;color:#FFFFFF;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">员工满意度调查问卷</div>
<div style="position:absolute;left:636px;top:44px;width:110px;height:44px;box-sizing:border-box;overflow:hidden;border:1px solid #5EEAD4;box-sizing:border-box"></div>
<div style="position:absolute;left:636px;top:44px;width:110px;height:44px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#CCFBF1;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">匿 名 填 写</div>
<div style="position:absolute;left:48px;top:84px;width:460px;height:16px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#99F6E4;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">ANONYMOUS EMPLOYEE SURVEY</div>
<div style="position:absolute;left:48px;top:156px;width:60px;height:14px;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:278px;top:156px;width:60px;height:14px;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:508px;top:156px;width:70px;height:14px;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:48px;top:174px;width:220px;height:20px;box-sizing:border-box;overflow:hidden;font-size:11px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">产品设计部</div>
<div style="position:absolute;left:278px;top:174px;width:220px;height:20px;box-sizing:border-box;overflow:hidden;font-size:11px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">UI 设计师</div>
<div style="position:absolute;left:508px;top:174px;width:220px;height:20px;box-sizing:border-box;overflow:hidden;font-size:11px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">3 年</div>
<div style="position:absolute;left:48px;top:196px;width:220px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:278px;top:196px;width:220px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:508px;top:196px;width:220px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:48px;top:218px;width:698px;height:30px;box-sizing:border-box;overflow:hidden;background:#F0FDFA;border:1px solid #99F6E4;box-sizing:border-box"></div>
<div style="position:absolute;left:60px;top:224px;width:674px;height:18px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#0F766E;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">请对照每项描述,在右侧最符合的等级栏内打勾(匿名,不记名)</div>
<div style="position:absolute;left:48px;top:264px;width:698px;height:334px;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:45.8453%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#CCFBF1;color:#0F172A;font-size:8.5px;font-weight:600;text-align:left">评价项目</th><th style="width:9.7421%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#CCFBF1;color:#0F172A;font-size:8.5px;font-weight:600;text-align:center">非常满意</th><th style="width:9.7421%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#CCFBF1;color:#0F172A;font-size:8.5px;font-weight:600;text-align:center">满意</th><th style="width:9.7421%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#CCFBF1;color:#0F172A;font-size:8.5px;font-weight:600;text-align:center">一般</th><th style="width:11.1748%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#CCFBF1;color:#0F172A;font-size:8.5px;font-weight:600;text-align:center">不满意</th><th style="width:13.7536%;box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:34px;background:#CCFBF1;color:#0F172A;font-size:8.5px;font-weight:600;text-align:center">非常不满意</th></tr></thead><tbody><tr><td style="box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:50px;font-size:9px;color:#0F172A;text-align:left;vertical-align:middle">工作内容与岗位匹配度</td><td style="box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:50px;font-size:9px;color:#0F172A;text-align:center;vertical-align:middle"></td><td style="box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:50px;font-size:9px;color:#0F172A;text-align:center;vertical-align:middle"></td><td style="box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:50px;font-size:9px;color:#0F172A;text-align:center;vertical-align:middle"></td><td style="box-sizing:border-box;border:1px solid #CBD5E1;padding:0 6px;height:50px;font-size:9px;color:#0F172A;text-align:center;vertical-align:middle"></td><td
// …

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