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.

84 - Training needs survey

A4 training needs survey: role info, topic preferences, and course suggestions.

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:120px;box-sizing:border-box;overflow:hidden;background:#4C1D95"></div>
<div style="position:absolute;left:586px;top:30px;width:160px;height:20px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#FFFFFF;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">吴迪</div>
<div style="position:absolute;left:500px;top:32px;width:70px;height:20px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#C4B5FD;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">姓 名</div>
<div style="position:absolute;left:48px;top:38px;width:400px;height:34px;box-sizing:border-box;overflow:hidden;font-size:23px;font-weight:700;color:#FFFFFF;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">培训需求调研问卷</div>
<div style="position:absolute;left:586px;top:58px;width:160px;height:20px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#FFFFFF;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">市场部</div>
<div style="position:absolute;left:500px;top:60px;width:70px;height:20px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#C4B5FD;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">部 门</div>
<div style="position:absolute;left:48px;top:78px;width:400px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#C4B5FD;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">TRAINING NEEDS ASSESSMENT</div>
<div style="position:absolute;left:586px;top:86px;width:160px;height:20px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#FFFFFF;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">市场专员</div>
<div style="position:absolute;left:500px;top:88px;width:70px;height:20px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#C4B5FD;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">岗 位</div>
<div style="position:absolute;left:48px;top:150px;width:24px;height:18px;box-sizing:border-box;overflow:hidden;font-size:9px;font-weight:700;color:#7C3AED;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">01</div>
<div style="position:absolute;left:76px;top:150px;width:620px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;font-weight:600;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">您目前最需要提升的能力方向是?</div>
<div style="position:absolute;left:76px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;background:#FAF5FF;border:1px solid #DDD6FE;box-sizing:border-box"></div>
<div style="position:absolute;left:76px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#5B21B6;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">专业技能</div>
<div style="position:absolute;left:236px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;background:#FAF5FF;border:1px solid #DDD6FE;box-sizing:border-box"></div>
<div style="position:absolute;left:236px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#5B21B6;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">沟通协作</div>
<div style="position:absolute;left:396px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;background:#FAF5FF;border:1px solid #DDD6FE;box-sizing:border-box"></div>
<div style="position:absolute;left:396px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#5B21B6;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">管理能力</div>
<div style="position:absolute;left:556px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;background:#FAF5FF;border:1px solid #DDD6FE;box-sizing:border-box"></div>
<div style="position:absolute;left:556px;top:178px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#5B21B6;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">工具应用</div>
<div style="position:absolute;left:48px;top:238px;width:698px;height:1px;box-sizing:border-box;overflow:hidden;background:#EDE9FE"></div>
<div style="position:absolute;left:48px;top:260px;width:24px;height:18px;box-sizing:border-box;overflow:hidden;font-size:9px;font-weight:700;color:#7C3AED;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">02</div>
<div style="position:absolute;left:76px;top:260px;width:620px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;font-weight:600;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">您偏好的培训形式是?</div>
<div style="position:absolute;left:76px;top:288px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;background:#FAF5FF;border:1px solid #DDD6FE;box-sizing:border-box"></div>
<div style="position:absolute;left:76px;top:288px;width:148px;height:34px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#5B21B6;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">线下授课</div>
<div style="position:absolute;left:236px;top:288px;width:148px;height:34px;box-sizing:border-box
// …

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