-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (120 loc) · 9.15 KB
/
index.html
File metadata and controls
131 lines (120 loc) · 9.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://cdn.tailwindcss.com https://cloud.umami.is https://unpkg.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: blob:; connect-src 'self' https://api-gateway.umami.dev https://cdn.jsdelivr.net https://cloud.umami.is; worker-src 'self' blob: https://cdn.jsdelivr.net;">
<script src="app/lang-redirect.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pdf2txt - PDF to Text Converter</title>
<meta name="description" content="Convert PDFs to clean, LLM-ready text files in your browser. Batch process files locally with no uploads.">
<meta name="keywords" content="pdf to text, pdf2txt, pdf converter, extract text from pdf, convert pdf to txt, convert pdf to markdown, llm ready text, batch pdf conversion, local browser conversion, privacy, password protected pdf">
<meta name="robots" content="index,follow">
<link rel="canonical" href="https://spacesoda.github.io/pdf2txt/">
<link rel="alternate" hreflang="x-default" href="https://spacesoda.github.io/pdf2txt/">
<link rel="alternate" hreflang="en" href="https://spacesoda.github.io/pdf2txt/">
<link rel="alternate" hreflang="ja" href="https://spacesoda.github.io/pdf2txt/ja/">
<link rel="alternate" hreflang="zh-TW" href="https://spacesoda.github.io/pdf2txt/zh/">
<!-- Social -->
<meta property="og:title" content="pdf2txt - PDF to Text Converter">
<meta property="og:description" content="Convert PDFs to clean, LLM-ready text files in your browser. Batch process files locally with no uploads.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://spacesoda.github.io/pdf2txt/">
<meta property="twitter:card" content="summary">
<meta property="twitter:title" content="pdf2txt - PDF to Text Converter">
<meta property="twitter:description" content="Convert PDFs to clean, LLM-ready text files in your browser. Batch process files locally with no uploads.">
<meta property="twitter:url" content="https://spacesoda.github.io/pdf2txt/">
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
<link rel="shortcut icon" href="assets/favicon.ico">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="css/style.css">
<!-- Preload Core Dependencies -->
<link rel="preload" href="https://cdn.jsdelivr.net/npm/pdfjs-dist@3.11.174/build/pdf.min.js" as="script" crossorigin>
<link rel="prefetch" href="https://cdn.jsdelivr.net/npm/pdfjs-dist@3.11.174/build/pdf.worker.min.js" as="script" crossorigin>
<!-- Tailwind -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Framework (React) -->
<script defer crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script defer crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<!-- Icons -->
<script defer src="https://unpkg.com/lucide@latest"></script>
<!-- Logic Dependencies (PDF.js, JSZip) -->
<script defer src="https://cdn.jsdelivr.net/npm/pdfjs-dist@3.11.174/build/pdf.min.js" crossorigin="anonymous"></script>
<script defer src="app/pdf2txt-config.js"></script>
<script defer src="app/pdf2txt-strings-en.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js"></script>
<!-- Core App Logic -->
<script defer src="app/pdf2txt.js"></script>
<script defer src="app/pdf2txt-password.js"></script>
<!-- UI -->
<script defer src="app/pdf2txt-ui.js"></script>
<!-- Analytics -->
<script defer src="https://cloud.umami.is/script.js" data-website-id="8771ed9f-edd3-4665-bf16-1bc95940af08"></script>
</head>
<body class="bg-[#050505] text-zinc-100 min-h-screen lg:h-screen flex flex-col lg:overflow-hidden overflow-x-hidden relative selection:bg-white/20 selection:text-white">
<!-- Ambient Spotlight -->
<div class="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-[800px] h-[400px] bg-white/5 blur-[100px] rounded-full pointer-events-none mix-blend-screen opacity-40"></div>
<div class="flex flex-col lg:h-full max-w-4xl mx-auto w-full px-6 pt-4 pb-0">
<!-- Navbar -->
<nav class="flex items-center justify-between mb-4 lg:mb-4">
<a href="./" class="text-xl font-bold text-white tracking-[0.025em] hover:text-zinc-300 transition-colors">
pdf2txt
</a>
<div class="flex items-center gap-4 text-sm tracking-widest">
<div class="flex items-center gap-2 text-zinc-400 mr-2">
<a href="./" class="lang-switch text-white hover:text-zinc-200 transition-colors">EN</a>
<span class="text-zinc-600">|</span>
<a href="ja/" class="lang-switch hover:text-zinc-200 transition-colors">JP</a>
<span class="text-zinc-600">|</span>
<a href="zh/" class="lang-switch hover:text-zinc-200 transition-colors">中文</a>
</div>
<a href="https://github.com/SPACESODA/pdf2txt/" class="text-zinc-400 hover:text-white transition-colors" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-6 h-6"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg>
</a>
</div>
</nav>
<div class="flex justify-center mb-8 lg:mb-8">
<a href="https://spacesoda.github.io/epub2txt/" class="inline-flex items-center justify-center px-5 py-[10px] rounded-full border border-sky-400/40 text-sm font-semibold text-zinc-100 bg-gradient-to-r from-sky-500/25 via-sky-500/10 to-transparent shadow-[0_12px_28px_rgba(56,189,248,0.18)] transition-[transform,border-color,color,box-shadow] duration-200 ease-[cubic-bezier(0.25,0.1,0.25,1)] hover:-translate-y-0.5 hover:border-sky-300/80 hover:text-white hover:shadow-[0_16px_36px_rgba(56,189,248,0.28)]" data-umami-event="pdf | epub2txt Banner">
Convert EPUBs ->
</a>
</div>
<!-- Hero -->
<div class="text-center max-w-3xl mx-auto space-y-4 mb-2 lg:mb-2">
<h1 class="text-2xl md:text-3xl font-bold text-white tracking-tight leading-tight md:max-w-[60%] mx-auto">
Convert PDFs into Clean, LLM-ready Text Files
</h1>
<p class="text-sm text-zinc-400 leading-relaxed max-w-xl mx-auto">
The most robust PDF-to-text converter. Batch process locally, with support for password-protected PDFs!
</p>
</div>
<!-- App Container -->
<div id="root" class="relative z-10 flex-1 w-full min-h-0"></div>
<footer class="relative z-10 pt-4 pb-8 text-center text-[13px] text-zinc-400 opacity-80 space-y-1">
<div class="tracking-wide text-zinc-200">
© <a href="https://github.com/SPACESODA" class="hover:text-white transition-colors" target="_blank" rel="noopener noreferrer">SPACESODA</a> / <a href="https://github.com/realanthonyc" class="hover:text-white transition-colors" target="_blank" rel="noopener noreferrer">ANTHONYC</a>
</div>
<div>
<a href="https://github.com/SPACESODA/pdf2txt/" class="hover:text-zinc-200 transition-colors" rel="noopener noreferrer" target="_blank">
★ Star on GitHub
</a>
</div>
<nav class="footer-menu" aria-label="Related tools" class="hover:text-zinc-400">
<div class="footer-menu-row">
<a href="https://spacesoda.github.io/epub2txt/" target="_blank" rel="noopener noreferrer">EPUB to TXT</a>
<span class="footer-separator">|</span>
<a href="https://spacesoda.github.io/pdf2txt/" target="_blank" rel="noopener noreferrer" class="footer-current">PDF to TXT</a>
<span class="footer-separator">|</span>
<a href="https://spacesoda.github.io/youtube2txt/" target="_blank" rel="noopener noreferrer">YouTube to TXT</a>
</div>
<div class="footer-menu-row">
<a href="https://spacesoda.github.io/read-txt/" target="_blank" rel="noopener noreferrer">Read TXT</a>
</div>
</nav>
</footer>
</div>
</body>
</html>