-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path02-whitepaper.html
More file actions
143 lines (131 loc) · 7.67 KB
/
Copy path02-whitepaper.html
File metadata and controls
143 lines (131 loc) · 7.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Whitepaper — The Single-Source Document</title>
<style>
:root{
--bg:#fcfbf8; --fg:#16140f; --muted:#6c685c; --line:#e7e3d8; --a:#7a5af0; --a2:#c08a2d;
--card:#fff; --serif:ui-serif,"Iowan Old Style",Georgia,serif;
--sans:ui-sans-serif,-apple-system,"Segoe UI",Inter,sans-serif; --maxw:680px;
}
@media (prefers-color-scheme:dark){:root{--bg:#100f0c;--fg:#ece8dd;--muted:#9a9588;--line:#2a271f;--card:#1a1813}}
*{box-sizing:border-box;margin:0}
@media (prefers-reduced-motion:reduce){*{animation:none!important}html{scroll-behavior:auto}}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--fg);font-family:var(--sans);font-size:17px;line-height:1.7}
/* generative cover */
.cover{min-height:62vh;display:grid;align-content:end;gap:.4em;padding:8vh 9vw 6vh;position:relative;overflow:hidden;color:#fff}
.cover svg{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.cover .kick{color:#ffd98a;font-weight:700;letter-spacing:.16em;text-transform:uppercase;font-size:13px}
.cover h1{font-family:var(--serif);font-size:clamp(2.4rem,6vw,4.4rem);line-height:1.04;letter-spacing:-.02em;max-width:16ch;text-wrap:balance}
.cover .by{color:#d8d4ea;font-size:15px;margin-top:.6em}
.body{max-width:var(--maxw);margin:0 auto;padding:56px 24px 120px}
h2{font-family:var(--serif);font-size:1.7rem;margin:2.2em 0 .4em;text-wrap:balance;scroll-margin:20px}
h3{font-size:1.1rem;margin:1.6em 0 .3em}
p{margin:0 0 1em;text-wrap:pretty}
.lede{font-size:1.3rem;font-family:var(--serif);color:var(--muted)}
a{color:var(--a)}
.pull{font-family:var(--serif);font-size:1.5rem;line-height:1.3;border-left:3px solid var(--a2);padding-left:20px;margin:1.6em 0;color:var(--fg)}
figure{margin:1.8em 0;break-inside:avoid}
figcaption{color:var(--muted);font-size:13px;margin-top:8px}
.chart{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px}
table{width:100%;border-collapse:collapse;font-size:15px;margin:1.4em 0;break-inside:avoid}
th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
sup a{text-decoration:none}
.notes{font-size:13px;color:var(--muted);border-top:1px solid var(--line);margin-top:3em;padding-top:1em}
.notes li{margin:.3em 0}
@page{size:A4;margin:18mm 16mm 20mm;
@top-center{content:string(t);font-size:9pt;color:#999}
@bottom-right{content:counter(page) " / " counter(pages);font-size:9pt;color:#999}}
h1{string-set:t content()}
@media print{
:root{--bg:#fff;--fg:#111;--card:#fff;--line:#ddd}
.cover{min-height:auto;color:#fff;break-after:page}
body{font-size:11pt}.body{max-width:none;padding:0}
h2{break-after:avoid}figure,table,.pull{break-inside:avoid}
a{color:#111;text-decoration:underline}
body{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
</style>
</head>
<body>
<header class="cover">
<!-- harmonograph-style generative cover (codedesigner) -->
<svg viewBox="0 0 800 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#1a0f3d"/><stop offset=".5" stop-color="#3a1d6e"/><stop offset="1" stop-color="#0b1e3a"/>
</linearGradient>
</defs>
<rect width="800" height="600" fill="url(#g)"/>
<g fill="none" stroke="#c08a2d" stroke-width="1.1" opacity="0.5" id="harm"></g>
<g fill="none" stroke="#7a5af0" stroke-width="1" opacity="0.45" id="harm2"></g>
</svg>
<span class="kick">Whitepaper · 2026</span>
<h1>The Single-Source Document</h1>
<p class="by">Why HTML beats PDF as the authoring layer · SuperSynergy Research</p>
</header>
<article class="body">
<p class="lede">PDF is an export. The source should be HTML — readable, searchable, themeable, and printable to pixel-perfect pages on demand.</p>
<h2 id="thesis">The thesis</h2>
<p>For a decade, teams authored in one tool and exported to another. The result: drift, dead links, and image-dump PDFs no one can search.<sup><a href="#n1">1</a></sup> In 2026 the browser is the most capable layout engine on earth — and it ships everywhere.</p>
<p class="pull">One file. Looks great on screen. Prints to a perfect PDF. Sent directly.</p>
<h2 id="evidence">The evidence</h2>
<p>Across ten conversion methods, image-based exporters strip searchable text and break accessibility, while dead engines carry security risk.<sup><a href="#n2">2</a></sup> Browser-grade rendering wins on fidelity; native print-CSS wins on control.</p>
<figure>
<div class="chart">
<!-- static SVG bar chart (prints; never blank) -->
<svg viewBox="0 0 520 220" width="100%" role="img" aria-label="Fidelity vs control by method">
<g font-family="ui-sans-serif" font-size="12" fill="#8a8678">
<line x1="60" y1="180" x2="500" y2="180" stroke="#ccc"/>
<text x="60" y="200">jsPDF</text><text x="180" y="200">wkhtml</text>
<text x="285" y="200">WeasyPrint</text><text x="405" y="200">Playwright</text>
</g>
<g>
<rect x="60" y="150" width="70" height="30" rx="4" fill="#d36"/>
<rect x="170" y="135" width="70" height="45" rx="4" fill="#e85"/>
<rect x="280" y="80" width="70" height="100" rx="4" fill="#c08a2d"/>
<rect x="390" y="40" width="70" height="140" rx="4" fill="#7a5af0"/>
</g>
</svg>
</div>
<figcaption>Fig 1. Relative document fidelity by method (higher = better). Static SVG — renders in print.</figcaption>
</figure>
<h2 id="matrix">Method matrix</h2>
<table>
<thead><tr><th>Method</th><th>Searchable text</th><th class="n">2026 status</th></tr></thead>
<tbody>
<tr><td>Self-contained HTML + Ctrl+P</td><td>Yes</td><td class="n">Best for humans</td></tr>
<tr><td>Playwright <code>page.pdf()</code></td><td>Yes</td><td class="n">Top server pick</td></tr>
<tr><td>WeasyPrint</td><td>Yes</td><td class="n">Python static</td></tr>
<tr><td>jsPDF + html2canvas</td><td>No (image)</td><td class="n">Avoid</td></tr>
<tr><td>wkhtmltopdf</td><td>No</td><td class="n">Dead 2023</td></tr>
</tbody>
</table>
<h2 id="conclusion">Conclusion</h2>
<p>Author once in HTML. Let the reader choose: read it live, or print it to PDF. The artifact becomes a true single source of truth — and you stop maintaining two copies of everything.</p>
<ol class="notes">
<li id="n1">1. Searchability and accessibility are lost the moment a document becomes a flattened image.</li>
<li id="n2">2. Apryse 10-method comparison, 2026; verified via independent code survey.</li>
</ol>
</article>
<script>
// draw harmonograph curves into the cover (decorative; static after load)
function harm(id,p){const el=document.getElementById(id);if(!el)return;let d="";
for(let t=0;t<60;t+=0.018){
const x=400+200*Math.sin(p.a*t+p.p1)*Math.exp(-0.004*t)+120*Math.sin(p.b*t)*Math.exp(-0.003*t);
const y=300+200*Math.sin(p.c*t+p.p2)*Math.exp(-0.004*t)+120*Math.sin(p.d*t)*Math.exp(-0.003*t);
d+=(t===0?"M":"L")+x.toFixed(1)+" "+y.toFixed(1)+" ";
}
const path=document.createElementNS("http://www.w3.org/2000/svg","path");
path.setAttribute("d",d);el.appendChild(path);
}
harm("harm",{a:2.01,b:3.0,c:3.01,d:2.0,p1:0,p2:Math.PI/2});
harm("harm2",{a:1.99,b:4.0,c:2.51,d:3.0,p1:Math.PI/4,p2:0});
</script>
</body>
</html>