-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
554 lines (545 loc) · 28.5 KB
/
Copy pathindex.html
File metadata and controls
554 lines (545 loc) · 28.5 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
<!DOCTYPE html>
<html lang="en" data-ver="1.0">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>Folio — Free PDF Tools | Merge, Split, Compress, NID Card</title>
<meta name="description" content="Free PDF tools in your browser. Images to PDF, PDF to images, merge, split, compress, and NID or bank card layout. Nothing is uploaded. Files stay on this device.">
<meta name="keywords" content="free PDF tools, merge PDF, split PDF, compress PDF, images to PDF, PDF to images, NID card PDF, bank card, passport photo, no upload">
<meta name="robots" content="index, follow">
<meta name="author" content="Suman Ali">
<meta name="creator" content="Suman Ali">
<link rel="author" href="https://github.com/sumanengbd/">
<link rel="canonical" href="https://sumanengbd.github.io/folio/">
<meta name="theme-color" content="#4f46e5">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="Folio">
<meta name="application-name" content="Folio">
<meta property="og:type" content="website">
<meta property="og:url" content="https://sumanengbd.github.io/folio/">
<meta property="og:site_name" content="Folio">
<meta property="og:title" content="Folio — Free PDF Tools | Merge, Split, Compress, NID Card">
<meta property="og:description" content="Make, merge, split, and compress PDFs in the browser. Print NID or bank cards. Nothing is uploaded.">
<meta property="og:image" content="https://sumanengbd.github.io/folio/img/icon-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Folio — Free PDF Tools">
<meta name="twitter:description" content="Images to PDF, merge, split, compress, NID card. Files stay on this device.">
<meta name="twitter:url" content="https://sumanengbd.github.io/folio/">
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="img/icon-192.png">
<link rel="stylesheet" href="css/app.css?v=76">
<script src="js/boot.js?v=31"></script>
<script src="js/protect.js?v=31"></script>
<script src="js/vendor/sortable.min.js"></script>
<script src="js/vendor/jspdf.umd.min.js"></script>
<script src="js/vendor/jszip.min.js"></script>
<script src="js/vendor/pdf-lib.min.js"></script>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebApplication","name":"Folio","url":"https://sumanengbd.github.io/folio/","softwareVersion":"1.0","description":"Free PDF tools in your browser. Images to PDF, merge, split, compress, and NID or bank card layout. Nothing is uploaded.","applicationCategory":"UtilitiesApplication","operatingSystem":"Any","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"author":{"@type":"Person","name":"Suman Ali","url":"https://github.com/sumanengbd/"}}
</script>
</head>
<body>
<div class="shell">
<aside class="rail" id="rail">
<div class="rail-main">
<div class="brand">
<button type="button" class="logo" id="railToggle" aria-label="Collapse" aria-expanded="true" title="Collapse">F</button>
<div class="brand-copy">
<strong>Folio</strong>
<em>Private PDF studio</em>
</div>
</div>
<div class="rail-scroll" id="railScroll">
<div class="rail-nav">
<button type="button" class="on" id="tabToPdf" data-tab="to-pdf" title="Images to PDF">
<span class="rail-ico"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="3" y="4" width="7" height="7" rx="1"/><rect x="14" y="4" width="7" height="7" rx="1"/><path d="M4 16h16v4H4z"/></svg></span>
<span class="rail-label">Images to PDF</span>
</button>
<button type="button" id="tabFromPdf" data-tab="from-pdf" title="PDF to images">
<span class="rail-ico"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="4" y="3" width="16" height="18" rx="2"/><path d="M8 8h8M8 12h5"/></svg></span>
<span class="rail-label">PDF to images</span>
</button>
<button type="button" id="tabMerge" data-tab="merge" title="Merge PDFs">
<span class="rail-ico"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="4" width="8" height="11" rx="1"/><rect x="13" y="9" width="8" height="11" rx="1"/><path d="M8 20h8"/></svg></span>
<span class="rail-label">Merge PDFs</span>
</button>
<button type="button" id="tabSplit" data-tab="split" title="Split PDF">
<span class="rail-ico"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="5" y="3" width="14" height="18" rx="2"/><path d="M5 12h14"/></svg></span>
<span class="rail-label">Split PDF</span>
</button>
<button type="button" id="tabCompress" data-tab="compress" title="Compress">
<span class="rail-ico"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M8 8 4 12l4 4M16 8l4 4-4 4M10 12h4"/></svg></span>
<span class="rail-label">Compress</span>
</button>
<button type="button" id="tabText" data-tab="text" title="Text tools">
<span class="rail-ico"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M4 7h16M8 7v12M16 7v12M6 19h4M14 19h4"/></svg></span>
<span class="rail-label">Text tools</span>
</button>
<button type="button" id="tabIdCard" data-tab="id-card" title="ID / Bank Card">
<span class="rail-ico"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="5.5" width="19" height="13" rx="2"/><rect x="5" y="8.5" width="5" height="7" rx="1"/><path d="M13 9.5h5.5M13 12.2h4.2M13 14.9h3"/></svg></span>
<span class="rail-label">ID / Bank Card</span>
</button>
</div>
<button type="button" class="rail-more" id="railMore" title="More tools" aria-label="More tools">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg>
</button>
</div>
</div>
<div class="rail-foot">
<div class="rail-stats" id="railStats" title="Anonymous visit count. Files stay on this device.">
<div class="stat stat-live">
<b id="statLive">–</b>
<span>Live</span>
</div>
<div class="stat">
<b id="statTotal">–</b>
<span>Visitors</span>
</div>
</div>
<small id="railBadge" title="Files stay on this device">Local</small>
<button type="button" class="install-btn" id="installBtn" title="Install app">
<span class="rail-ico"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12"/><path d="m8 11 4 4 4-4"/><path d="M5 21h14"/></svg></span>
<span class="rail-label">Install</span>
</button>
<span class="ver-foot" title="Folio version 1.0">v1.0</span>
</div>
</aside>
<main class="canvas" id="canvas">
<div id="emptyHint" class="hint">
<div class="hint-stack" aria-hidden="true">
<span></span><span></span><span></span>
<em>+</em>
</div>
<b id="hintTitle">Drop images onto the desk</b>
<div id="hintText">They become PDF pages. Scroll the middle to read the full document in order.</div>
<button class="btn primary btn-inline" type="button" id="chooseBtn">Open files</button>
<div class="hint-drop">PNG, JPG, WEBP · or click to open</div>
</div>
<div id="idDesk" class="id-desk hidden">
<div class="id-sheet pos-center" id="idSheet">
<div class="id-pair">
<div class="id-slot">
<div class="id-card empty" data-side="front" id="idFrontCard">
<img alt="Front">
<div class="id-empty-msg">Front<br>Drop or open photo</div>
<button class="page-x" type="button" title="Remove" aria-label="Remove" data-side="front"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/></svg></button>
</div>
<div class="page-tag">Front · 85.6 × 54 mm</div>
</div>
<div class="id-slot">
<div class="id-card empty" data-side="back" id="idBackCard">
<img alt="Back">
<div class="id-empty-msg">Back<br>Drop or open photo</div>
<button class="page-x" type="button" title="Remove" aria-label="Remove" data-side="back"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/></svg></button>
</div>
<div class="page-tag">Back · 85.6 × 54 mm</div>
</div>
</div>
<div class="id-sheet-label" id="idSheetLabel">A4 · 210 × 297 mm</div>
</div>
</div>
<div id="textDesk" class="text-desk hidden">
<textarea id="textInput" placeholder="Type or paste text here…" spellcheck="true"></textarea>
</div>
<div id="stageStack" class="stage-stack hidden"></div>
<div id="nameBar" class="name-bar hidden"><span id="nameBarText"></span></div>
<div class="zoom-bar" id="zoomBar">
<button type="button" id="undoBtn" title="Undo (Ctrl+Z)" disabled aria-label="Undo">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M9 14 4 9l5-5"/><path d="M4 9h10a6 6 0 0 1 0 12h-3"/></svg>
</button>
<button type="button" id="redoBtn" title="Redo (Ctrl+Y)" disabled aria-label="Redo">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="m15 14 5-5-5-5"/><path d="M20 9H10a6 6 0 0 0 0 12h3"/></svg>
</button>
<button type="button" id="zoomOut" title="Zoom out">−</button>
<span id="zoomVal" title="Reset to 100%">100%</span>
<button type="button" id="zoomIn" title="Zoom in">+</button>
</div>
<div id="dropOverlay" class="drop-overlay" hidden>
<div class="drop-card">
<span class="drop-ico" aria-hidden="true">
<svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"><path d="M12 16V4"/><path d="m8 8 4-4 4 4"/><rect x="4" y="16" width="16" height="5" rx="1.5"/></svg>
</span>
<b id="dropTitle">Drop to add</b>
<span id="dropSub">Images become PDF pages</span>
</div>
</div>
<div id="busy" class="busy"><div class="spinner"></div></div>
</main>
<aside class="side" id="sideToPdf">
<div class="side-head">
<h2><span class="side-kicker">Tool</span> <span class="side-sep" aria-hidden="true">›</span> Images → PDF</h2>
<p class="side-lead">Turn photos into PDF pages. Nothing is uploaded.</p>
</div>
<div class="field"><label>Page size</label>
<select id="pageSize">
<option value="a4">A4</option>
<option value="letter">Letter</option>
<option value="legal">Legal</option>
<option value="a5">A5</option>
</select>
</div>
<div class="field-row portrait-only" id="orientRow">
<div class="field field-orient">
<label class="field-label" for="orientation">Orientation</label>
<select id="orientation">
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>
</div>
<div class="field field-rotate">
<span class="field-label" id="rotateLbl">Auto-rotate</span>
<label class="toggle" aria-labelledby="rotateLbl">
<input id="rotateMatch" type="checkbox" checked>
<span class="toggle-face">
<span class="toggle-copy"><span class="off">Off</span><span class="on">On</span></span>
<span class="switch" aria-hidden="true"></span>
</span>
</label>
</div>
</div>
<div class="field"><label>Image fit</label>
<select id="fit">
<option value="contain">Fit inside</option>
<option value="cover">Fill / crop</option>
</select>
</div>
<div class="field"><label>Margin</label>
<select id="margin">
<option value="0" selected>None</option>
<option value="5">5 mm</option>
<option value="10">10 mm</option>
<option value="15">15 mm</option>
</select>
</div>
<div id="imgAdjust" hidden>
<div class="field">
<span class="field-label">Image</span>
<label class="toggle" title="Apply edits to every page">
<input id="adjAll" type="checkbox">
<span class="toggle-face">
<span class="toggle-copy"><span class="off">This page</span><span class="on">All pages</span></span>
<span class="switch" aria-hidden="true"></span>
</span>
</label>
</div>
<div class="field"><label>Brightness <span id="adjBrightVal">100%</span></label>
<div class="range-wrap"><input id="adjBright" type="range" min="50" max="150" value="100"></div>
</div>
<div class="field"><label>Contrast <span id="adjContrastVal">100%</span></label>
<div class="range-wrap"><input id="adjContrast" type="range" min="50" max="150" value="100"></div>
</div>
<div class="field"><label>Saturation <span id="adjSaturateVal">100%</span></label>
<div class="range-wrap"><input id="adjSaturate" type="range" min="0" max="200" value="100"></div>
</div>
<div class="field"><label>Sharpness <span id="adjSharpVal">0</span></label>
<div class="range-wrap"><input id="adjSharp" type="range" min="0" max="100" value="0"></div>
</div>
<div class="field-row">
<div class="field">
<span class="field-label">Grayscale</span>
<label class="toggle">
<input id="adjGray" type="checkbox">
<span class="toggle-face">
<span class="toggle-copy"><span class="off">Off</span><span class="on">On</span></span>
<span class="switch" aria-hidden="true"></span>
</span>
</label>
</div>
<div class="field">
<span class="field-label">Black & white</span>
<label class="toggle">
<input id="adjBw" type="checkbox">
<span class="toggle-face">
<span class="toggle-copy"><span class="off">Off</span><span class="on">On</span></span>
<span class="switch" aria-hidden="true"></span>
</span>
</label>
</div>
</div>
<div class="field"><label>Background</label>
<div class="bg-picks" id="adjBg">
<button type="button" data-bg="#ffffff" class="on" title="White"></button>
<button type="button" data-bg="#f3efe8" title="Cream"></button>
<button type="button" data-bg="#e5e7eb" title="Gray"></button>
<button type="button" data-bg="#111111" title="Black"></button>
</div>
</div>
<div class="field">
<button id="adjReset" class="btn ghost" type="button">Reset</button>
</div>
</div>
<div class="size-meter" data-size-meter>
<div class="size-row"><span>Source</span><b data-size="src">—</b></div>
<div class="size-row"><span>Estimated PDF</span><b data-size="out">—</b></div>
</div>
<div class="side-actions">
<div class="btn-row">
<button id="downloadBtn" class="btn primary" type="button" disabled>Download PDF</button>
<button id="printBtn" class="btn" type="button" disabled>Print</button>
</div>
<button id="clearBtn" class="btn ghost" type="button">Clear</button>
</div>
<div class="meta" id="status">No pages yet. Add images from the strip or drop them on the canvas.</div>
</aside>
<aside class="side hidden" id="sideFromPdf">
<div class="side-head">
<h2><span class="side-kicker">Tool</span> <span class="side-sep" aria-hidden="true">›</span> PDF → Images</h2>
<p class="side-lead">Save each page as an image. Type a range if you need only some pages.</p>
</div>
<div class="field"><label>Extract</label>
<select id="extractMode">
<option value="embedded">Embedded images</option>
<option value="pages" selected>Each page as an image</option>
</select>
</div>
<div class="field"><label>Page quality</label>
<select id="pageScale">
<option value="1.5">Standard</option>
<option value="2" selected>High</option>
<option value="3">Print</option>
</select>
</div>
<div class="field"><label>Pages</label>
<input id="pageRange" type="text" placeholder="All, or 1–3, 5, 8">
</div>
<div class="field"><label>Image format</label>
<select id="imgFormat">
<option value="png" selected>PNG</option>
<option value="jpg">JPG</option>
<option value="webp">WebP</option>
</select>
</div>
<div class="size-meter" data-size-meter>
<div class="size-row"><span>Source PDF</span><b data-size="src">—</b></div>
<div class="size-row"><span>Estimated images</span><b data-size="out">—</b></div>
</div>
<div class="side-actions">
<button id="choosePdfBtn" class="btn" type="button">Open PDF</button>
<div class="btn-row">
<button id="downloadThisBtn" class="btn" type="button" disabled>This image</button>
<button id="downloadEachBtn" class="btn" type="button" disabled>All images</button>
</div>
<div class="btn-row">
<button id="downloadAllBtn" class="btn primary" type="button" disabled>Download ZIP</button>
<button id="printExtractBtn" class="btn" type="button" disabled>Print</button>
</div>
<button id="extractClearBtn" class="btn ghost" type="button">Clear</button>
</div>
<div class="meta" id="extractNote">Open a PDF. Pages appear in the strip. Click one to view it large.</div>
</aside>
<aside class="side hidden" id="sideIdCard">
<div class="side-head">
<h2><span class="side-kicker">Tool</span> <span class="side-sep" aria-hidden="true">›</span> ID Card</h2>
<p class="side-lead">Place front and back on one sheet. Works for NID, bank card, or passport photo.</p>
</div>
<div class="field">
<label>Card type</label>
<select id="idCardType">
<option value="nid" selected>NID Card — 85.6 × 54 mm</option>
<option value="bank">Bank Card — 86 × 54 mm</option>
<option value="passport">Passport photo — 35 × 45 mm</option>
<option value="licence">Driving licence — 85.6 × 54 mm</option>
</select>
</div>
<div class="field">
<label>Card position</label>
<select id="idPlace">
<option value="top">Top middle</option>
<option value="center" selected>Center middle</option>
</select>
</div>
<div class="field-row">
<div class="field">
<label>Page size</label>
<select id="idPageSize">
<option value="a4" selected>A4</option>
<option value="letter">Letter</option>
<option value="legal">Legal</option>
<option value="a5">A5</option>
</select>
</div>
<div class="field">
<label>Orientation</label>
<select id="idOrientation">
<option value="portrait" selected>Portrait</option>
<option value="landscape">Landscape</option>
</select>
</div>
</div>
<div class="field">
<label>Selected side</label>
<select id="idSide">
<option value="front">Front</option>
<option value="back">Back</option>
</select>
</div>
<div class="field">
<label>Rotate</label>
<div class="btn-row">
<button class="btn" type="button" id="idRotL">Left</button>
<button class="btn" type="button" id="idRotR">Right</button>
</div>
</div>
<div class="field">
<label>Fine rotate <span id="idTiltVal">0°</span></label>
<input id="idTilt" type="range" min="-180" max="180" step="1" value="0">
</div>
<div class="field">
<label>Zoom / crop <span id="idZoomVal">100%</span></label>
<input id="idZoom" type="range" min="100" max="280" value="100">
</div>
<div class="size-meter" data-size-meter>
<div class="size-row"><span>Photos</span><b data-size="src">—</b></div>
<div class="size-row"><span>Estimated PDF</span><b data-size="out">—</b></div>
</div>
<div class="side-actions">
<div class="btn-row">
<button id="idOpenBtn" class="btn" type="button">Open photo</button>
<button id="idResetBtn" class="btn" type="button">Reset crop</button>
</div>
<div class="btn-row">
<button id="idPdfBtn" class="btn primary" type="button" disabled>Download PDF</button>
<button id="idPrintBtn" class="btn" type="button" disabled>Print</button>
</div>
<button id="idPngBtn" class="btn" type="button" disabled>Download PNG</button>
<button id="idClearBtn" class="btn ghost" type="button">Clear both</button>
</div>
<div class="meta" id="idStatus">Open front and back. Fit each photo inside the card frame, then download.</div>
</aside>
<aside class="side hidden" id="sideMerge">
<div class="side-head">
<h2><span class="side-kicker">Tool</span> <span class="side-sep" aria-hidden="true">›</span> Merge PDFs</h2>
<p class="side-lead">Combine several PDFs into one file. Drag the strip to set order.</p>
</div>
<div class="size-meter" data-size-meter>
<div class="size-row"><span>Source</span><b data-size="src">—</b></div>
<div class="size-row"><span>Estimated PDF</span><b data-size="out">—</b></div>
</div>
<div class="side-actions">
<button id="mergeOpenBtn" class="btn" type="button">Add PDFs</button>
<div class="btn-row">
<button id="mergeDlBtn" class="btn primary" type="button" disabled>Download</button>
<button id="mergePrintBtn" class="btn" type="button" disabled>Print</button>
</div>
<button id="mergeClearBtn" class="btn ghost" type="button">Clear</button>
</div>
<div class="meta" id="mergeNote">Drop several PDFs. Drag the strip to set order, then download one file.</div>
</aside>
<aside class="side hidden" id="sideSplit">
<div class="side-head">
<h2><span class="side-kicker">Tool</span> <span class="side-sep" aria-hidden="true">›</span> Split PDF</h2>
<p class="side-lead">Keep only the pages you need. Type a range or tap thumbs to pick them.</p>
</div>
<div class="field"><label>Pages</label>
<input id="splitRange" type="text" placeholder="All, or 1–3, 5, 8">
</div>
<div class="size-meter" data-size-meter>
<div class="size-row"><span>Source PDF</span><b data-size="src">—</b></div>
<div class="size-row"><span>Estimated PDF</span><b data-size="out">—</b></div>
</div>
<div class="side-actions">
<button id="splitOpenBtn" class="btn" type="button">Open PDF</button>
<div class="btn-row">
<button id="splitDlBtn" class="btn primary" type="button" disabled>Download PDF</button>
<button id="splitPrintBtn" class="btn" type="button" disabled>Print</button>
</div>
<button id="splitEachBtn" class="btn" type="button" disabled>Each page ZIP</button>
<button id="splitClearBtn" class="btn ghost" type="button">Clear</button>
</div>
<div class="meta" id="splitNote">Open a PDF. Type a range or click thumbs to pick pages.</div>
</aside>
<aside class="side hidden" id="sideCompress">
<div class="side-head">
<h2><span class="side-kicker">Tool</span> <span class="side-sep" aria-hidden="true">›</span> Compress</h2>
<p class="side-lead">Make a smaller PDF or image. Choose quality, then download.</p>
</div>
<div class="field"><label>Quality</label>
<select id="compressQuality">
<option value="low">Smaller file</option>
<option value="medium" selected>Balanced</option>
<option value="high">Sharper</option>
</select>
</div>
<div class="size-meter" data-size-meter>
<div class="size-row"><span>Source</span><b data-size="src">—</b></div>
<div class="size-row"><span>Estimated file</span><b data-size="out">—</b></div>
</div>
<div class="side-actions">
<button id="compressOpenBtn" class="btn" type="button">Open PDF or images</button>
<div class="btn-row">
<button id="compressDlBtn" class="btn primary" type="button" disabled>Download</button>
<button id="compressPrintBtn" class="btn" type="button" disabled>Print</button>
</div>
<button id="compressClearBtn" class="btn ghost" type="button">Clear</button>
</div>
<div class="meta" id="compressNote">Open a PDF or photos. Smaller quality makes a lighter file.</div>
</aside>
<aside class="side hidden" id="sideText">
<div class="side-head">
<h2><span class="side-kicker">Tool</span> <span class="side-sep" aria-hidden="true">›</span> Text tools</h2>
<p class="side-lead">Change case, copy, download, or print. Text stays on this device.</p>
</div>
<div class="text-ops">
<button class="btn" type="button" data-text-op="upper">UPPERCASE</button>
<button class="btn" type="button" data-text-op="lower">lowercase</button>
<button class="btn" type="button" data-text-op="sentence">Sentence case</button>
<button class="btn" type="button" data-text-op="title">Title Case</button>
<button class="btn" type="button" data-text-op="invert">Invert case</button>
<button class="btn" type="button" data-text-op="alt">aLtErNaTiNg</button>
<button class="btn" type="button" data-text-op="trim">Trim spaces</button>
<button class="btn" type="button" data-text-op="lines">One paragraph</button>
<button class="btn span-2" type="button" data-text-op="reverse">Reverse text</button>
</div>
<div class="side-actions">
<div class="btn-row">
<button class="btn" type="button" id="textCopyBtn">Copy</button>
<button class="btn" type="button" id="textDlBtn">Download .txt</button>
</div>
<button class="btn primary" type="button" id="textPrintBtn">Print</button>
<button class="btn ghost" type="button" id="textClearBtn">Clear</button>
</div>
<div class="meta" id="textNote">0 words · 0 characters · 0 lines</div>
</aside>
<div class="strip" id="strip">
<button type="button" class="add-tile" id="addTile" title="Add">+</button>
</div>
</div>
<input id="files" type="file" accept="image/*" multiple>
<input id="pdfFile" type="file" accept="application/pdf,.pdf">
<input id="idFiles" type="file" accept="image/*" multiple>
<input id="mergeFiles" type="file" accept="application/pdf,.pdf" multiple>
<input id="workPdfFile" type="file" accept="application/pdf,.pdf">
<input id="compressFiles" type="file" accept="application/pdf,.pdf,image/*" multiple>
<div class="install-sheet hidden" id="installSheet" hidden>
<div class="install-card">
<b>Install Folio</b>
<p data-ios hidden>Tap the Share button, then <b style="color:#161616">Add to Home Screen</b>. Folio opens like an app and keeps working with no internet.</p>
<p data-chrome>Use the install icon in the address bar, or tap <b style="color:#161616">Install</b> in the left menu. After that it opens in its own window and works offline.</p>
<button class="btn primary" type="button" data-close>Got it</button>
</div>
</div>
<div class="keys-sheet hidden" id="keysSheet" hidden>
<div class="keys-card">
<b>Shortcuts</b>
<ul>
<li><kbd>Ctrl</kbd><kbd>O</kbd> Open files</li>
<li><kbd>Ctrl</kbd><kbd>S</kbd> Download</li>
<li><kbd>Ctrl</kbd><kbd>Z</kbd> Undo</li>
<li><kbd>Ctrl</kbd><kbd>Y</kbd> Redo</li>
<li><kbd>R</kbd> Rotate page</li>
<li><kbd>Del</kbd> Remove page</li>
<li><kbd>Ctrl</kbd><kbd>+</kbd> / <kbd>−</kbd> Zoom</li>
<li><kbd>?</kbd> This list</li>
</ul>
<button class="btn primary" type="button" data-close>Got it</button>
</div>
</div>
<div class="no-inspect-cover" aria-hidden="true">Developer tools are not allowed on this page.</div>
<script>if (window.folioBoot) window.folioBoot();</script>
<script src="js/stats.js?v=1"></script>
<script type="module" src="js/app.js?v=38"></script>
</body>
</html>