-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
161 lines (151 loc) · 8.74 KB
/
Copy pathindex.html
File metadata and controls
161 lines (151 loc) · 8.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PDF Tools - All-in-One PDF Solution</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="app-container">
<!-- Top Navigation -->
<header class="navbar">
<div class="nav-content">
<div class="logo">
<span class="logo-icon">❤️</span>
<span class="logo-text">PDF Tools</span>
</div>
<nav class="nav-links">
<button class="nav-link active" onclick="showView('home')">Home</button>
<button class="nav-link" onclick="showTool('merge')">Merge PDF</button>
<button class="nav-link" onclick="showTool('word-to-pdf')">Word to PDF</button>
<button class="nav-link" onclick="showTool('compress')">Compress PDF</button>
<button class="nav-link" onclick="showTool('image')">Image to PDF</button>
</nav>
</div>
</header>
<!-- Main Content -->
<main class="main-container">
<!-- Home View - Tool Grid -->
<div id="home-view" class="view-container active">
<div class="hero-section">
<h1>Every PDF tool you need in one place</h1>
<p>All the tools you need to work with PDFs. Free, easy to use, and works offline!</p>
</div>
<!-- Tool Categories -->
<div class="tools-wrapper">
<!-- ORGANIZE PDF -->
<section class="tool-category">
<h2 class="category-title">📋 Organize PDF</h2>
<div class="tool-cards">
<div class="tool-card" onclick="showTool('merge')">
<div class="tool-icon" style="background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);">🔗</div>
<h3>Merge PDF</h3>
<p>Combine PDFs in the order you want</p>
</div>
<div class="tool-card" onclick="showTool('split')">
<div class="tool-icon" style="background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);">✂️</div>
<h3>Split PDF</h3>
<p>Separate pages into multiple files</p>
</div>
<div class="tool-card" onclick="showTool('delete')">
<div class="tool-icon" style="background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);">🗑️</div>
<h3>Remove Pages</h3>
<p>Delete unwanted pages from PDF</p>
</div>
<div class="tool-card" onclick="showTool('extract')">
<div class="tool-icon" style="background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);">📤</div>
<h3>Extract Pages</h3>
<p>Save specific pages as new PDF</p>
</div>
</div>
</section>
<!-- OPTIMIZE PDF -->
<section class="tool-category">
<h2 class="category-title">⚡ Optimize PDF</h2>
<div class="tool-cards">
<div class="tool-card" onclick="showTool('compress')">
<div class="tool-icon" style="background: linear-gradient(135deg, #5AD67D 0%, #40C463 100%);">🗜️</div>
<h3>Compress PDF</h3>
<p>Reduce file size while optimizing quality</p>
</div>
</div>
</section>
<!-- CONVERT TO PDF -->
<section class="tool-category">
<h2 class="category-title">🔄 Convert to PDF</h2>
<div class="tool-cards">
<div class="tool-card" onclick="showTool('image')">
<div class="tool-icon" style="background: linear-gradient(135deg, #F9CA24 0%, #F0B90B 100%);">🖼️</div>
<h3>Image to PDF</h3>
<p>Convert JPG, PNG images to PDF</p>
</div>
<div class="tool-card" onclick="showTool('word-to-pdf')">
<div class="tool-icon" style="background: linear-gradient(135deg, #F9CA24 0%, #F0B90B 100%);">📝</div>
<h3>Word to PDF</h3>
<p>Convert DOCX documents to PDF</p>
</div>
<div class="tool-card" onclick="showTool('excel-to-pdf')">
<div class="tool-icon" style="background: linear-gradient(135deg, #F9CA24 0%, #F0B90B 100%);">📊</div>
<h3>Excel to PDF</h3>
<p>Convert XLSX spreadsheets to PDF</p>
</div>
<div class="tool-card" onclick="showTool('ppt-to-pdf')">
<div class="tool-icon" style="background: linear-gradient(135deg, #F9CA24 0%, #F0B90B 100%);">📽️</div>
<h3>PowerPoint to PDF</h3>
<p>Convert PPTX presentations to PDF</p>
</div>
</div>
</section>
<!-- CONVERT FROM PDF -->
<section class="tool-category">
<h2 class="category-title">📤 Convert from PDF</h2>
<div class="tool-cards">
<div class="tool-card" onclick="showTool('pdf-to-word')">
<div class="tool-icon" style="background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);">📝</div>
<h3>PDF to Word</h3>
<p>Convert PDF to editable DOCX</p>
</div>
<div class="tool-card" onclick="showTool('pdf-to-excel')">
<div class="tool-icon" style="background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);">📊</div>
<h3>PDF to Excel</h3>
<p>Extract tables to XLSX format</p>
</div>
<div class="tool-card" onclick="showTool('pdf-to-ppt')">
<div class="tool-icon" style="background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);">📽️</div>
<h3>PDF to PowerPoint</h3>
<p>Convert PDF to PPTX slides</p>
</div>
<div class="tool-card" onclick="showTool('pdf-to-image')">
<div class="tool-icon" style="background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);">🖼️</div>
<h3>PDF to Image</h3>
<p>Convert PDF pages to JPG/PNG</p>
</div>
</div>
</section>
</div>
</div>
<!-- Tool View Container -->
<div id="tool-view" class="view-container">
<button class="back-btn" onclick="showView('home')">← Back to all tools</button>
<div class="tool-content">
<div id="tool-header">
<h1 id="tool-title"></h1>
<p id="tool-description"></p>
</div>
<!-- Dynamic tool content will be inserted here -->
<div id="tool-workspace"></div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="app-footer">
<p>🔒 All processing happens in your browser. No files are uploaded to any server.</p>
</footer>
</div>
<script src="https://unpkg.com/pdf-lib@1.17.1/dist/pdf-lib.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mammoth/1.8.0/mammoth.browser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script src="app.js?v=2.0"></script>
</body>
</html>